java.lang.Object
org.apache.jena.mem.NodeToTriplesMapBase
- Direct Known Subclasses:
NodeToTriplesMap
,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 boolean
Addt
to this NTM; the nodeo
must be the index node of the triple.void
clear()
Clear this NTM; it will contain no triples.abstract boolean
Answer true iff this NTM contains the concrete triplet
.abstract boolean
domain()
The values (usually nodes) which appear in the index position of the stored triples; useful for eg listSubjects().boolean
isEmpty()
Answer an iterator over all the triples in this NTM.iterator
(Object o, HashCommon.NotifyEmpty container) abstract ExtendedIterator<Triple>
Answer an iterator over all the triples that are indexed by the itemy
.abstract boolean
Removet
from this NTM.void
int
size()
-
Field Details
-
bunchMap
The map from nodes to Bunch(Triple).
-
-
Constructor Details
-
NodeToTriplesMapBase
-
-
Method Details
-
add
Addt
to this NTM; the nodeo
must be the index node of the triple. Answertrue
iff the triple was not previously in the set, ie, it really truly has been added. -
remove
Removet
from this NTM. Answertrue
iff 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 thaty
need not be a Node (because of indexing values). -
iterateAll
Answer an iterator over all the triples in this NTM.
-