Package com.arcadedb.query.sql.executor
Interface ResultSet
-
- All Superinterfaces:
AutoCloseable
,Iterator<Result>
,Spliterator<Result>
- All Known Implementing Classes:
ExplainResultSet
,InternalResultSet
,IteratorResultSet
,LocalResultSet
,LocalResultSetLifecycleDecorator
public interface ResultSet extends Spliterator<Result>, Iterator<Result>, AutoCloseable
Result set returned from queries. This class implements can be used as an Iterator of Result.
-
-
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 Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
characteristics()
void
close()
default long
countEntries()
default Stream<Edge>
edgeStream()
Returns the result set as a stream of vertices (filters only the results that are edges - where the isEdge() method returns true).default Stream<Record>
elementStream()
Returns the result set as a stream of elements (filters only the results that are elements - where the isElement() method returns true).default long
estimateSize()
default void
forEachRemaining(Consumer<? super Result> action)
Optional<ExecutionPlan>
getExecutionPlan()
Map<String,Long>
getQueryStats()
boolean
hasNext()
Result
next()
default void
remove()
default void
reset()
default Stream<Result>
stream()
Returns the result set as a stream.default boolean
tryAdvance(Consumer<? super Result> action)
default ResultSet
trySplit()
default Stream<Vertex>
vertexStream()
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 Detail
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
getExecutionPlan
Optional<ExecutionPlan> getExecutionPlan()
-
reset
default void reset()
-
tryAdvance
default boolean tryAdvance(Consumer<? super Result> action)
- Specified by:
tryAdvance
in interfaceSpliterator<Result>
-
countEntries
default long countEntries()
-
forEachRemaining
default void forEachRemaining(Consumer<? super Result> action)
- Specified by:
forEachRemaining
in interfaceIterator<Result>
- Specified by:
forEachRemaining
in interfaceSpliterator<Result>
-
trySplit
default ResultSet trySplit()
- Specified by:
trySplit
in interfaceSpliterator<Result>
-
estimateSize
default long estimateSize()
- Specified by:
estimateSize
in interfaceSpliterator<Result>
-
characteristics
default int characteristics()
- Specified by:
characteristics
in interfaceSpliterator<Result>
-
stream
default Stream<Result> stream()
Returns the result set as a stream. IMPORTANT: the stream consumes the result set!- Returns:
-
elementStream
default Stream<Record> 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
default Stream<Vertex> 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:
-
-