org.jrdf.graph.local
Class ReadWriteGraphImpl
java.lang.Object
org.jrdf.graph.local.ReadWriteGraphImpl
- All Implemented Interfaces:
- ReadableGraph, ReadWriteGraph, WritableGraph
public class ReadWriteGraphImpl
- extends Object
- implements ReadWriteGraph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadWriteGraphImpl
public ReadWriteGraphImpl(LongIndex[] newIndexes,
NodePool newNodePool,
IteratorFactory newIteratorFactory)
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
getSize
public long getSize()
- Specified by:
getSize
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
localizeAndAdd
public void localizeAndAdd(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
throws GraphException
- Specified by:
localizeAndAdd
in interface WritableGraph
- Throws:
GraphException
localizeAndRemove
public void localizeAndRemove(SubjectNode subject,
PredicateNode predicate,
ObjectNode object)
throws GraphException
- Specified by:
localizeAndRemove
in interface WritableGraph
- Throws:
GraphException
removeIterator
public void removeIterator(Iterator<Triple> triples)
throws GraphException
- Specified by:
removeIterator
in interface WritableGraph
- Throws:
GraphException
clear
public void clear()
- Specified by:
clear
in interface WritableGraph