org.jrdf.graph.local
Class ReadableGraphImpl

java.lang.Object
  extended by org.jrdf.graph.local.ReadableGraphImpl
All Implemented Interfaces:
ReadableGraph

public class ReadableGraphImpl
extends Object
implements ReadableGraph


Constructor Summary
ReadableGraphImpl(LongIndex[] newLongIndexes, Localizer newLocalizer, IteratorFactory newIteratorFactory)
           
 
Method Summary
 boolean contains(SubjectNode subject, PredicateNode predicate, ObjectNode object)
           
 ClosableIterator<Triple> find(SubjectNode subject, PredicateNode predicate, ObjectNode object)
           
 ClosableIterator<PredicateNode> findUniquePredicates()
           
 ClosableIterator<PredicateNode> findUniquePredicates(Resource resource)
           
 long getSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadableGraphImpl

public ReadableGraphImpl(LongIndex[] newLongIndexes,
                         Localizer newLocalizer,
                         IteratorFactory newIteratorFactory)
Method Detail

contains

public boolean contains(SubjectNode subject,
                        PredicateNode predicate,
                        ObjectNode object)
Specified by:
contains in interface ReadableGraph

find

public ClosableIterator<Triple> find(SubjectNode subject,
                                     PredicateNode predicate,
                                     ObjectNode object)
Specified by:
find in interface ReadableGraph

findUniquePredicates

public ClosableIterator<PredicateNode> findUniquePredicates(Resource resource)
                                                     throws GraphException
Specified by:
findUniquePredicates in interface ReadableGraph
Throws:
GraphException

findUniquePredicates

public ClosableIterator<PredicateNode> findUniquePredicates()
Specified by:
findUniquePredicates in interface ReadableGraph

getSize

public long getSize()
Specified by:
getSize in interface ReadableGraph