public class HashTable extends Object
| Constructor and Description |
|---|
HashTable(ValueTable table) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
expungeRemovedStatements(int count,
String condition) |
int |
getBatchSize() |
String |
getName() |
int |
getSelectChunkSize() |
void |
init() |
void |
insert(Number id,
long hash) |
Map<Long,Number> |
load(Map<Long,Number> hashes) |
List<Long> |
maxIds(int shift,
int mod) |
protected HashBatch |
newHashBatch() |
void |
optimize() |
protected PreparedStatement |
prepareSelect(String sql) |
protected boolean |
timeToExpunge() |
String |
toString() |
public HashTable(ValueTable table)
public String getName()
public int getBatchSize()
public int getSelectChunkSize()
public void init()
throws SQLException
SQLExceptionpublic void close()
throws SQLException
SQLExceptionpublic List<Long> maxIds(int shift, int mod) throws SQLException
SQLExceptionpublic void insert(Number id, long hash) throws SQLException, InterruptedException
SQLExceptionInterruptedExceptionpublic boolean expungeRemovedStatements(int count,
String condition)
throws SQLException
SQLExceptionprotected boolean timeToExpunge()
public void optimize()
throws SQLException
SQLExceptionpublic Map<Long,Number> load(Map<Long,Number> hashes) throws SQLException
SQLExceptionprotected HashBatch newHashBatch()
protected PreparedStatement prepareSelect(String sql) throws SQLException
SQLExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.