Interface OResultSet
- All Superinterfaces:
AutoCloseable,Iterator<OResult>,Spliterator<OResult>
- All Known Subinterfaces:
OResultSetInternal
- All Known Implementing Classes:
OExecutionResultSet,OGremlinScriptResultSet,OLocalResultSetLifecycleDecorator,ORemoteResultSet,OResultSetReady,OScriptResultSet,OServerResultSet
Created by luigidellaquila on 07/07/16.
-
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
Modifier and TypeMethodDescriptiondefault intvoidclose()Returns the result set as a stream of vertices (filters only the results that are edges - where the isEdge() method returns true).Returns the result set as a stream of elements (filters only the results that are elements - where the isElement() method returns true).default longdefault voidforEachRemaining(Consumer<? super OResult> action) booleanhasNext()next()default voidremove()default voidreset()stream()Returns the result set as a stream.default booleantryAdvance(Consumer<? super OResult> action) default OResultSettrySplit()Returns the result set as a stream of vertices (filters only the results that are vertices - where the isVertex() method returns true).Methods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
Method Details
-
hasNext
boolean hasNext() -
next
OResult next() -
remove
default void remove() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-
getExecutionPlan
Optional<OExecutionPlan> getExecutionPlan() -
getQueryStats
-
reset
default void reset() -
tryAdvance
- Specified by:
tryAdvancein interfaceSpliterator<OResult>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<OResult>- Specified by:
forEachRemainingin interfaceSpliterator<OResult>
-
trySplit
- Specified by:
trySplitin interfaceSpliterator<OResult>
-
estimateSize
default long estimateSize()- Specified by:
estimateSizein interfaceSpliterator<OResult>
-
characteristics
default int characteristics()- Specified by:
characteristicsin interfaceSpliterator<OResult>
-
stream
Returns the result set as a stream. IMPORTANT: the stream consumes the result set!- Returns:
-
elementStream
Returns the result set as a stream of elements (filters only the results that are elements - where the isElement() method returns true). IMPORTANT: the stream consumes the result set!- Returns:
-
vertexStream
Returns the result set as a stream of vertices (filters only the results that are vertices - where the isVertex() method returns true). IMPORTANT: the stream consumes the result set!- Returns:
-
edgeStream
Returns the result set as a stream of vertices (filters only the results that are edges - where the isEdge() method returns true). IMPORTANT: the stream consumes the result set!- Returns:
-