org.jrdf.graph.global
Class AbstractGlobalizedGraph

java.lang.Object
  extended by org.jrdf.graph.global.AbstractGlobalizedGraph
All Implemented Interfaces:
GlobalizedGraph
Direct Known Subclasses:
GlobalizedGraphImpl

public abstract class AbstractGlobalizedGraph
extends Object
implements GlobalizedGraph


Field Summary
protected  MoleculeIndex[] indexes
          Collection of the 3 indexes.
protected  MoleculeIteratorFactory iteratorFactory
          Factory for managing the creation of various iterators.
protected  TripleComparator tripleComparator
           
 
Fields inherited from interface org.jrdf.graph.global.GlobalizedGraph
OBJECT_INDEX, PREDICATE_INDEX, SUBJECT_INDEX
 
Constructor Summary
AbstractGlobalizedGraph(MoleculeIndex[] newIndexes, MoleculeIteratorFactory newIteratorFactory, TripleComparator newTripleComparator)
           
 
Method Summary
protected  boolean containsValue(SubjectNode subject, PredicateNode predicate, ObjectNode object)
           
protected  ClosableIterator<Molecule> findValue(SubjectNode subject, PredicateNode predicate, ObjectNode object)
           
protected  void init()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jrdf.graph.global.GlobalizedGraph
add, clear, close, contains, contains, contains, find, getMolecule, getMoleculeIteratorFactory, getNumberOfMolecules, getNumberOfTriples, isEmpty, remove
 

Field Detail

indexes

protected transient MoleculeIndex[] indexes
Collection of the 3 indexes.


iteratorFactory

protected MoleculeIteratorFactory iteratorFactory
Factory for managing the creation of various iterators.


tripleComparator

protected final TripleComparator tripleComparator
Constructor Detail

AbstractGlobalizedGraph

public AbstractGlobalizedGraph(MoleculeIndex[] newIndexes,
                               MoleculeIteratorFactory newIteratorFactory,
                               TripleComparator newTripleComparator)
Method Detail

init

protected void init()

findValue

protected ClosableIterator<Molecule> findValue(SubjectNode subject,
                                               PredicateNode predicate,
                                               ObjectNode object)

containsValue

protected boolean containsValue(SubjectNode subject,
                                PredicateNode predicate,
                                ObjectNode object)

toString

public String toString()
Overrides:
toString in class Object