- All Superinterfaces:
org.apache.jena.atlas.lib.Copyable<TripleBunch>
,JenaMapSetCommon<Triple>
,JenaSet<Triple>
- All Known Implementing Classes:
ArrayBunch
,HashedTripleBunch
public interface TripleBunch
extends JenaSet<Triple>, org.apache.jena.atlas.lib.Copyable<TripleBunch>
A bunch of triples - a stripped-down set with specialized methods. A
bunch is expected to store triples that share some useful property
(such as having the same subject or predicate).
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isArray()
Answer true iff this bunch is implemented as an array.Methods inherited from interface org.apache.jena.atlas.lib.Copyable
copy
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
-
isArray
boolean isArray()Answer true iff this bunch is implemented as an array. This field is used to optimize some operations by avoiding the need for instanceOf tests.- Returns:
- true iff this bunch is implemented as an arrays
-