public class NodeToTriplesMapMem extends NodeToTriplesMapBase
Modifier and Type | Class and Description |
---|---|
class |
NodeToTriplesMapMem.NotifyMe |
bunchMap
Constructor and Description |
---|
NodeToTriplesMapMem(Triple.Field indexField,
Triple.Field f2,
Triple.Field f3) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Triple t)
Add
t to this NTM; the node o must
be the index node of the triple. |
boolean |
contains(Triple t)
Answer true iff this NTM contains the concrete triple
t . |
boolean |
containsBySameValueAs(Triple t) |
ExtendedIterator<Triple> |
iterator(Node index,
Node n2,
Node n3)
Answer an iterator over all the triples in this NTM which match
pattern . |
Iterator<Triple> |
iterator(Object o,
HashCommon.NotifyEmpty container)
Answer an iterator over all the triples in this NTM which have index node
o . |
Iterator<Triple> |
iteratorForIndexed(Object y)
Answer an iterator over all the triples that are indexed by the item
y . |
boolean |
remove(Triple t)
Remove
t from this NTM. |
clear, domain, isEmpty, iterateAll, removedOneViaIterator, size
public NodeToTriplesMapMem(Triple.Field indexField, Triple.Field f2, Triple.Field f3)
public boolean add(Triple t)
t
to this NTM; the node o
must
be the index node of the triple. Answer true
iff the triple
was not previously in the set, ie, it really truly has been added.add
in class NodeToTriplesMapBase
public boolean remove(Triple t)
t
from this NTM. Answer true
iff the
triple was previously in the set, ie, it really truly has been removed.remove
in class NodeToTriplesMapBase
public Iterator<Triple> iterator(Object o, HashCommon.NotifyEmpty container)
o
.iterator
in class NodeToTriplesMapBase
public boolean contains(Triple t)
t
.contains
in class NodeToTriplesMapBase
public boolean containsBySameValueAs(Triple t)
containsBySameValueAs
in class NodeToTriplesMapBase
public ExtendedIterator<Triple> iterator(Node index, Node n2, Node n3)
pattern
. The index field of this NTM is guaranteed
concrete in the pattern.iterator
in class NodeToTriplesMapBase
public Iterator<Triple> iteratorForIndexed(Object y)
y
.
Note that y
need not be a Node (because of indexing values).iteratorForIndexed
in class NodeToTriplesMapBase
Licenced under the Apache License, Version 2.0