Package org.trellisldp.ext.cassandra
Class AsyncResultSetUtils
- java.lang.Object
-
- org.trellisldp.ext.cassandra.AsyncResultSetUtils
-
- All Implemented Interfaces:
Spliterator<Row>
public final class AsyncResultSetUtils extends Object implements Spliterator<Row>
-
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcharacteristics()longestimateSize()static Stream<Row>stream(AsyncResultSet results)booleantryAdvance(Consumer<? super Row> action)Spliterator<Row>trySplit()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
-
-
-
Method Detail
-
stream
public static Stream<Row> stream(AsyncResultSet results)
- Parameters:
results- anAsyncResultSet- Returns:
- a
StreamofRows
-
tryAdvance
public boolean tryAdvance(Consumer<? super Row> action)
- Specified by:
tryAdvancein interfaceSpliterator<Row>
-
trySplit
public Spliterator<Row> trySplit()
- Specified by:
trySplitin interfaceSpliterator<Row>
-
estimateSize
public long estimateSize()
- Specified by:
estimateSizein interfaceSpliterator<Row>
-
characteristics
public int characteristics()
- Specified by:
characteristicsin interfaceSpliterator<Row>
-
-