Package org.apache.jena.mem
Class NodeToTriplesMapMem
- java.lang.Object
-
- org.apache.jena.mem.NodeToTriplesMapBase
-
- org.apache.jena.mem.NodeToTriplesMapMem
-
public class NodeToTriplesMapMem extends NodeToTriplesMapBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
NodeToTriplesMapMem.NotifyMe
-
Field Summary
-
Fields inherited from class org.apache.jena.mem.NodeToTriplesMapBase
bunchMap
-
-
Constructor Summary
Constructors Constructor Description NodeToTriplesMapMem(Triple.Field indexField, Triple.Field f2, Triple.Field f3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Triple t)
Addt
to this NTM; the nodeo
must be the index node of the triple.boolean
contains(Triple t)
Answer true iff this NTM contains the concrete triplet
.boolean
containsBySameValueAs(Triple t)
java.util.Iterator<Triple>
iterator(java.lang.Object o, HashCommon.NotifyEmpty container)
Answer an iterator over all the triples in this NTM which have index nodeo
.ExtendedIterator<Triple>
iterator(Node index, Node n2, Node n3)
Answer an iterator over all the triples in this NTM which matchpattern
.java.util.Iterator<Triple>
iteratorForIndexed(java.lang.Object y)
Answer an iterator over all the triples that are indexed by the itemy
.boolean
remove(Triple t)
Removet
from this NTM.-
Methods inherited from class org.apache.jena.mem.NodeToTriplesMapBase
clear, domain, isEmpty, iterateAll, removedOneViaIterator, size
-
-
-
-
Constructor Detail
-
NodeToTriplesMapMem
public NodeToTriplesMapMem(Triple.Field indexField, Triple.Field f2, Triple.Field f3)
-
-
Method Detail
-
add
public boolean add(Triple t)
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.- Specified by:
add
in classNodeToTriplesMapBase
-
remove
public boolean remove(Triple t)
Removet
from this NTM. Answertrue
iff the triple was previously in the set, ie, it really truly has been removed.- Specified by:
remove
in classNodeToTriplesMapBase
-
iterator
public java.util.Iterator<Triple> iterator(java.lang.Object o, HashCommon.NotifyEmpty container)
Answer an iterator over all the triples in this NTM which have index nodeo
.- Specified by:
iterator
in classNodeToTriplesMapBase
-
contains
public boolean contains(Triple t)
Answer true iff this NTM contains the concrete triplet
.- Specified by:
contains
in classNodeToTriplesMapBase
-
containsBySameValueAs
public boolean containsBySameValueAs(Triple t)
- Specified by:
containsBySameValueAs
in classNodeToTriplesMapBase
-
iterator
public ExtendedIterator<Triple> iterator(Node index, Node n2, Node n3)
Answer an iterator over all the triples in this NTM which matchpattern
. The index field of this NTM is guaranteed concrete in the pattern.- Specified by:
iterator
in classNodeToTriplesMapBase
-
iteratorForIndexed
public java.util.Iterator<Triple> iteratorForIndexed(java.lang.Object y)
Answer an iterator over all the triples that are indexed by the itemy
. Note thaty
need not be a Node (because of indexing values).- Specified by:
iteratorForIndexed
in classNodeToTriplesMapBase
-
-