Module org.apache.jena.core
Class RoaringBitmapTripleIterator
java.lang.Object
org.apache.jena.util.iterator.NiceIterator<Triple>
org.apache.jena.mem2.store.roaring.RoaringBitmapTripleIterator
- All Implemented Interfaces:
Iterator<Triple>
,org.apache.jena.atlas.iterator.IteratorCloseable<Triple>
,org.apache.jena.atlas.lib.Closeable
,ClosableIterator<Triple>
,ExtendedIterator<Triple>
A triple iterator that iterates over triple indices in a RoaringBitmap
BatchIterator
.
Only the #forEachRemaining method uses ImmutableBitmapDataProvider.forEach(org.roaringbitmap.IntConsumer)
if there has been no
#next or #hasNext call before.
All triples are stored in a FastHashSet
and each triple is retrieved from the set by its index.
The bitmap typically is a subset of the triple indices in the set.-
Constructor Summary
ConstructorDescriptionRoaringBitmapTripleIterator
(org.roaringbitmap.ImmutableBitmapDataProvider bitmap, FastHashSet<Triple> triples) -
Method Summary
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, close, close, emptyIterator, filterDrop, filterKeep, mapWith, remove, removeNext, toList, toSet
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
forEach, nextOptional
-
Constructor Details
-
RoaringBitmapTripleIterator
public RoaringBitmapTripleIterator(org.roaringbitmap.ImmutableBitmapDataProvider bitmap, FastHashSet<Triple> triples)
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from class:NiceIterator
default hasNext: no elements, return false. -
next
Description copied from class:NiceIterator
default next: throw an exception. -
forEachRemaining
-