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
SQLException
public void close() throws SQLException
SQLException
public List<Long> maxIds(int shift, int mod) throws SQLException
SQLException
public void insert(Number id, long hash) throws SQLException, InterruptedException
SQLException
InterruptedException
public boolean expungeRemovedStatements(int count, String condition) throws SQLException
SQLException
protected boolean timeToExpunge()
public void optimize() throws SQLException
SQLException
public Map<Long,Number> load(Map<Long,Number> hashes) throws SQLException
SQLException
protected HashBatch newHashBatch()
protected PreparedStatement prepareSelect(String sql) throws SQLException
SQLException
Copyright © 2001-2016 Aduna. All Rights Reserved.