org.openrdf.sail.rdbms.managers
Class UriManager

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

public class UriManager
extends ValueManagerBase<RdbmsURI>

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

Author:
James Leigh

Field Summary
static UriManager instance
           
 
Fields inherited from class org.openrdf.sail.rdbms.managers.base.ManagerBase
BATCH_SIZE, MAX_QUEUE, MIN_QUEUE, queue
 
Constructor Summary
UriManager()
           
 
Method Summary
 void close()
           
protected  boolean expunge(String condition)
           
protected  int getBatchSize()
           
protected  void insert(Number id, RdbmsURI resource)
           
protected  String key(RdbmsURI value)
           
protected  void optimize()
           
 void setUriTable(URITable shorter)
           
 
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 UriManager instance
Constructor Detail

UriManager

public UriManager()
Method Detail

setUriTable

public void setUriTable(URITable shorter)

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<RdbmsURI>
Throws:
SQLException

getBatchSize

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

key

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

insert

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

optimize

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


Copyright © 2001-2008 Aduna. All Rights Reserved.