Class ResultSetSpliterator
java.lang.Object
java.util.Spliterators.AbstractSpliterator<ResultRow>
cz.cvut.kbss.ontodriver.iteration.ResultSetSpliterator
- All Implemented Interfaces:
Spliterator<ResultRow>
Spliterator implementation for a ResultSet.
Note that the methods wrap OntoDriverExceptions possibly thrown by the underlying result set in a OntoDriverRuntimeException
in order to support the Spliterator API.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,T_CONS extends Object, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED -
Constructor Summary
ConstructorsConstructorDescriptionResultSetSpliterator(ResultSet resultSet) Creates a spliterator reporting unknown estimate size and the following characteristics:Spliterator.IMMUTABLESpliterator.ORDEREDSpliterator.NONNULL -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super ResultRow> action) booleantryAdvance(Consumer<? super ResultRow> action) Methods inherited from class java.util.Spliterators.AbstractSpliterator
characteristics, estimateSize, trySplitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Constructor Details
-
ResultSetSpliterator
Creates a spliterator reporting unknown estimate size and the following characteristics:- Parameters:
resultSet-ResultSeton which the iteration will be performed
-
-
Method Details
-
tryAdvance
-
forEachRemaining
-