org.jrdf.graph.local
Class SortedResultsGraphFactory
java.lang.Object
org.jrdf.graph.local.SortedResultsGraphFactory
- All Implemented Interfaces:
- GraphFactory, ReadWriteGraphFactory
public class SortedResultsGraphFactory
- extends Object
- implements ReadWriteGraphFactory
Creates a new Graph implementation based on required types.
- Version:
- $Id: SortedResultsGraphFactory.java 3312 2010-08-08 22:09:32Z newmana $
- Author:
- Andrew Newman
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedResultsGraphFactory
public SortedResultsGraphFactory(LongIndex[] newLongIndexes,
NodePoolFactory newNodePoolFactory,
IteratorTrackingCollectionFactory newCollectionFactory)
getGraph
public Graph getGraph()
- Description copied from interface:
GraphFactory
- Returns the same graph instance (with the same underlying data structures - node pools, etc). A factory
will only ever return one instance of a graph so that nodes taken from graphs from the same factory will be
equal.
- Specified by:
getGraph in interface GraphFactory
- Returns:
- a new graph instance.
getReadWriteGraph
public ReadWriteGraph getReadWriteGraph()
- Specified by:
getReadWriteGraph in interface ReadWriteGraphFactory
getNodePool
public NodePool getNodePool()
- Specified by:
getNodePool in interface ReadWriteGraphFactory
close
public void close()
- Description copied from interface:
GraphFactory
- Any underlying resources will be closed (such as open files).
- Specified by:
close in interface GraphFactory- Specified by:
close in interface ReadWriteGraphFactory