public abstract class NodeToTriplesMapBase extends Object
Modifier and Type | Field and Description |
---|---|
BunchMap |
bunchMap
The map from nodes to Bunch(Triple).
|
Constructor and Description |
---|
NodeToTriplesMapBase(Triple.Field indexField,
Triple.Field f2,
Triple.Field f3) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
add(Triple t)
Add
t to this NTM; the node o must
be the index node of the triple. |
void |
clear()
Clear this NTM; it will contain no triples.
|
abstract boolean |
contains(Triple t)
Answer true iff this NTM contains the concrete triple
t . |
abstract boolean |
containsBySameValueAs(Triple t) |
Iterator<Object> |
domain()
The values (usually nodes) which appear in the index position of the stored triples; useful
for eg listSubjects().
|
boolean |
isEmpty() |
ExtendedIterator<Triple> |
iterateAll()
Answer an iterator over all the triples in this NTM.
|
abstract ExtendedIterator<Triple> |
iterator(Node index,
Node n2,
Node n3) |
abstract Iterator<Triple> |
iterator(Object o,
HashCommon.NotifyEmpty container) |
abstract Iterator<Triple> |
iteratorForIndexed(Object y)
Answer an iterator over all the triples that are indexed by the item
y . |
abstract boolean |
remove(Triple t)
Remove
t from this NTM. |
void |
removedOneViaIterator() |
int |
size() |
public BunchMap bunchMap
public NodeToTriplesMapBase(Triple.Field indexField, Triple.Field f2, Triple.Field f3)
public abstract 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.public abstract 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.public abstract Iterator<Triple> iterator(Object o, HashCommon.NotifyEmpty container)
public abstract boolean contains(Triple t)
t
.public abstract boolean containsBySameValueAs(Triple t)
public final Iterator<Object> domain()
public void clear()
public int size()
public void removedOneViaIterator()
public boolean isEmpty()
public abstract ExtendedIterator<Triple> iterator(Node index, Node n2, Node n3)
public abstract Iterator<Triple> iteratorForIndexed(Object y)
y
.
Note that y
need not be a Node (because of indexing values).public ExtendedIterator<Triple> iterateAll()
Licenced under the Apache License, Version 2.0