org.openrdf.sail.rdbms.schema
Class HashTable

java.lang.Object
  extended by org.openrdf.sail.rdbms.schema.HashTable

public class HashTable
extends Object

Author:
James Leigh

Constructor Summary
HashTable(ValueTable table)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashTable

public HashTable(ValueTable table)
Method Detail

getName

public String getName()

getBatchSize

public int getBatchSize()

getSelectChunkSize

public int getSelectChunkSize()

init

public void init()
          throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException

maxIds

public List<Long> maxIds(int shift,
                         int mod)
                  throws SQLException
Throws:
SQLException

insert

public void insert(Number id,
                   long hash)
            throws SQLException,
                   InterruptedException
Throws:
SQLException
InterruptedException

expungeRemovedStatements

public boolean expungeRemovedStatements(int count,
                                        String condition)
                                 throws SQLException
Throws:
SQLException

timeToExpunge

protected boolean timeToExpunge()

optimize

public void optimize()
              throws SQLException
Throws:
SQLException

toString

public String toString()
Overrides:
toString in class Object

load

public Map<Long,Number> load(Map<Long,Number> hashes)
                      throws SQLException
Throws:
SQLException

newHashBatch

protected HashBatch newHashBatch()

prepareSelect

protected PreparedStatement prepareSelect(String sql)
                                   throws SQLException
Throws:
SQLException


Copyright © 2001-2008 Aduna. All Rights Reserved.