org.openrdf.sail.rdbms.managers
Class BNodeManager

java.lang.Object
  extended by org.openrdf.sail.rdbms.managers.base.ManagerBase
      extended by org.openrdf.sail.rdbms.managers.base.ValueManagerBase<RdbmsBNode>
          extended by org.openrdf.sail.rdbms.managers.BNodeManager

public class BNodeManager
extends ValueManagerBase<RdbmsBNode>

Manages BNodes. Including creating, inserting, and looking up their IDs.

Author:
James Leigh

Field Summary
static BNodeManager instance
           
 
Fields inherited from class org.openrdf.sail.rdbms.managers.base.ManagerBase
BATCH_SIZE, MAX_QUEUE, MIN_QUEUE, queue
 
Constructor Summary
BNodeManager()
           
 
Method Summary
 void close()
           
protected  boolean expunge(String condition)
           
protected  int getBatchSize()
           
protected  void insert(Number id, RdbmsBNode resource)
           
protected  String key(RdbmsBNode value)
           
protected  void optimize()
           
 void setTable(BNodeTable table)
           
 
Methods inherited from class org.openrdf.sail.rdbms.managers.base.ValueManagerBase
cache, findInCache, flush, getIdSequence, getIdVersion, getInternalId, init, removedStatements, setHashManager, setIdSequence
 
Methods inherited from class org.openrdf.sail.rdbms.managers.base.ManagerBase
clear, flush, getQueue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static BNodeManager instance
Constructor Detail

BNodeManager

public BNodeManager()
Method Detail

setTable

public void setTable(BNodeTable table)

close

public void close()
           throws SQLException
Overrides:
close in class ManagerBase
Throws:
SQLException

expunge

protected boolean expunge(String condition)
                   throws SQLException
Specified by:
expunge in class ValueManagerBase<RdbmsBNode>
Throws:
SQLException

optimize

protected void optimize()
                 throws SQLException
Overrides:
optimize in class ValueManagerBase<RdbmsBNode>
Throws:
SQLException

getBatchSize

protected int getBatchSize()
Specified by:
getBatchSize in class ValueManagerBase<RdbmsBNode>

key

protected String key(RdbmsBNode value)
Specified by:
key in class ValueManagerBase<RdbmsBNode>

insert

protected void insert(Number id,
                      RdbmsBNode resource)
               throws SQLException,
                      InterruptedException
Specified by:
insert in class ValueManagerBase<RdbmsBNode>
Throws:
SQLException
InterruptedException


Copyright © 2001-2008 Aduna. All Rights Reserved.