public class ValueTable extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BATCH_SIZE |
static long |
NIL_ID |
| Constructor and Description |
|---|
ValueTable() |
public static int BATCH_SIZE
public static final long NIL_ID
public void setQueue(BlockingQueue<Batch> queue)
public boolean isIndexingValues()
public void setIndexingValues(boolean indexingValues)
public int getLength()
public void setLength(int length)
public int getSqlType()
public void setSqlType(int sqlType)
public int getIdType()
public void setIdType(int sqlType)
public RdbmsTable getRdbmsTable()
public void setRdbmsTable(RdbmsTable table)
public RdbmsTable getTemporaryTable()
public void setTemporaryTable(RdbmsTable temporary)
public String getName()
public long size()
public int getBatchSize()
public void initialize()
throws SQLException
SQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic void insert(Number id, String value) throws SQLException, InterruptedException
SQLExceptionInterruptedExceptionpublic void insert(Number id, Number value) throws SQLException, InterruptedException
SQLExceptionInterruptedExceptionpublic ValueBatch getValueBatch()
public boolean isExpired(ValueBatch batch)
public ValueBatch newValueBatch()
public void initBatch(ValueBatch batch) throws SQLException
SQLExceptionpublic void queue(ValueBatch batch) throws SQLException, InterruptedException
SQLExceptionInterruptedExceptionpublic void optimize()
throws SQLException
SQLExceptionpublic boolean expunge(String condition) throws SQLException
SQLExceptionpublic List<Long> maxIds(int shift, int mod) throws SQLException
SQLExceptionpublic String sql(int type, int length)
protected RdbmsTable getInsertTable()
protected PreparedStatement prepareInsert(String sql) throws SQLException
SQLExceptionprotected PreparedStatement prepareInsertSelect(String sql) throws SQLException
SQLExceptionprotected void createTable(RdbmsTable table) throws SQLException
SQLExceptionprotected void createTemporaryTable(RdbmsTable table) throws SQLException
SQLExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.