java.lang.Object
org.apache.jena.mem.NodeToTriplesMapBase
- Direct Known Subclasses:
NodeToTriplesMapMem
A base class for in-memory graphs
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNodeToTriplesMapBase(Triple.Field indexField, Triple.Field f2, Triple.Field f3) -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanAddtto this NTM; the nodeomust be the index node of the triple.voidclear()Clear this NTM; it will contain no triples.abstract booleanAnswer true iff this NTM contains the concrete triplet.abstract booleanbooleancontainsMatch(Node index, Node n2, Node n3) domain()The values (usually nodes) which appear in the index position of the stored triples; useful for eg listSubjects().booleanisEmpty()Answer an iterator over all the triples in this NTM.abstract ExtendedIterator<Triple>iterator(Object o, HashCommon.NotifyEmpty container) abstract ExtendedIterator<Triple>abstract ExtendedIterator<Triple>Answer an iterator over all the triples that are indexed by the itemy.abstract booleanRemovetfrom this NTM.voidintsize()
-
Field Details
-
bunchMap
The map from nodes to Bunch(Triple).
-
-
Constructor Details
-
NodeToTriplesMapBase
-
-
Method Details
-
add
Addtto this NTM; the nodeomust be the index node of the triple. Answertrueiff the triple was not previously in the set, ie, it really truly has been added. -
remove
Removetfrom this NTM. Answertrueiff the triple was previously in the set, ie, it really truly has been removed. -
iterator
-
contains
Answer true iff this NTM contains the concrete triplet. -
containsBySameValueAs
-
domain
The values (usually nodes) which appear in the index position of the stored triples; useful for eg listSubjects(). -
clear
public void clear()Clear this NTM; it will contain no triples. -
size
public int size() -
removedOneViaIterator
public void removedOneViaIterator() -
isEmpty
public boolean isEmpty() -
iterator
-
iteratorForIndexed
Answer an iterator over all the triples that are indexed by the itemy. Note thatyneed not be a Node (because of indexing values). -
iterateAll
Answer an iterator over all the triples in this NTM. -
streamAll
-
stream
-
containsMatch
-