- All Superinterfaces:
JenaMapSetCommon<Triple>
,JenaSet<Triple>
- All Known Implementing Classes:
NodeToTriplesMapMem
A map from a node to the triples that have that node as subject, predicate or object.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsMatch
(Node index, Node n2, Node n3) Answer true iff this map contains a triple that matches the pattern.copy()
Create a copy of this map.iteratorForMatches
(Node index, Node n2, Node n3) Answer an iterator over all the triples in this map that match the pattern.streamForMatches
(Node index, Node n2, Node n3) Answer a stream over all the triples in this map that match the pattern.Methods inherited from interface org.apache.jena.mem2.collection.JenaMapSetCommon
anyMatch, clear, containsKey, isEmpty, keyIterator, keySpliterator, keyStream, keyStreamParallel, removeUnchecked, size, tryRemove
Methods inherited from interface org.apache.jena.mem2.collection.JenaSet
addUnchecked, tryAdd
-
Method Details
-
iteratorForMatches
Answer an iterator over all the triples in this map that match the pattern.- Parameters:
index
- The node to match as key.n2
- A node to match, or Node.ANY.n3
- A node to match, or Node.ANY.- Returns:
- An iterator over all the triples in this map that match the pattern.
-
streamForMatches
Answer a stream over all the triples in this map that match the pattern.- Parameters:
index
- The node to match as key.n2
- A node to match, or Node.ANY.n3
- A node to match, or Node.ANY.- Returns:
- A stream over all the triples in this map that match the pattern.
-
containsMatch
Answer true iff this map contains a triple that matches the pattern.- Parameters:
index
- The node to match as key.n2
- A node to match, or Node.ANY.n3
- A node to match, or Node.ANY.- Returns:
- True iff this map contains a triple that matches the pattern.
-
copy
NodeToTriplesMap copy()Create a copy of this map. The new map will contain all the same nodes as keys of this map, but copies of the bunches as values.- Returns:
- an independent copy of this map
-