org.jrdf
Class SortedDiskJRDFFactory

java.lang.Object
  extended by org.jrdf.SortedDiskJRDFFactory
All Implemented Interfaces:
JRDFFactory

public final class SortedDiskJRDFFactory
extends Object
implements JRDFFactory

A factory for that used secondary storage to store JRDF Graphs using BDB JE and a BTree. These graphs are meant to be transistory i.e. used to store graphs that would not fit in memory but are not meant to be kept permanently. Returns sorted results.

For graphs that need to be retrieved over many calls PersistentJRDFFactoryImpl.

Version:
$Id: SortedDiskJRDFFactory.java 3321 2010-09-27 19:35:32Z newmana $
Author:
Andrew Newman

Method Summary
 void close()
           
static JRDFFactory getFactory()
           
 Graph getGraph()
          Create a new JRDF graph depending on the current configuration.
 SparqlConnection getNewSparqlConnection()
          Create a new connection to perform SPARQL operations depending on the current configuration.
 void refresh()
          Reload any configuration files used to create the objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static JRDFFactory getFactory()

refresh

public void refresh()
Description copied from interface: JRDFFactory
Reload any configuration files used to create the objects.

Specified by:
refresh in interface JRDFFactory

getGraph

public Graph getGraph()
Description copied from interface: JRDFFactory
Create a new JRDF graph depending on the current configuration.

Specified by:
getGraph in interface JRDFFactory
Returns:
a new instance of a JRDF graph.

getNewSparqlConnection

public SparqlConnection getNewSparqlConnection()
Description copied from interface: JRDFFactory
Create a new connection to perform SPARQL operations depending on the current configuration.

Specified by:
getNewSparqlConnection in interface JRDFFactory
Returns:
a new instance of a SPARQL connection.

close

public void close()