Interface OResultSet

All Superinterfaces:
AutoCloseable, Iterator<OResult>, Spliterator<OResult>
All Known Subinterfaces:
OResultSetInternal
All Known Implementing Classes:
OExecutionResultSet, OGremlinScriptResultSet, OLocalResultSetLifecycleDecorator, ORemoteResultSet, OResultSetReady, OScriptResultSet, OServerResultSet

public interface OResultSet extends Spliterator<OResult>, Iterator<OResult>, AutoCloseable
Created by luigidellaquila on 07/07/16.
  • Method Details

    • hasNext

      boolean hasNext()
      Specified by:
      hasNext in interface Iterator<OResult>
    • next

      OResult next()
      Specified by:
      next in interface Iterator<OResult>
    • remove

      default void remove()
      Specified by:
      remove in interface Iterator<OResult>
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • getExecutionPlan

      Optional<OExecutionPlan> getExecutionPlan()
    • getQueryStats

      Map<String,Long> getQueryStats()
    • reset

      default void reset()
    • tryAdvance

      default boolean tryAdvance(Consumer<? super OResult> action)
      Specified by:
      tryAdvance in interface Spliterator<OResult>
    • forEachRemaining

      default void forEachRemaining(Consumer<? super OResult> action)
      Specified by:
      forEachRemaining in interface Iterator<OResult>
      Specified by:
      forEachRemaining in interface Spliterator<OResult>
    • trySplit

      default OResultSet trySplit()
      Specified by:
      trySplit in interface Spliterator<OResult>
    • estimateSize

      default long estimateSize()
      Specified by:
      estimateSize in interface Spliterator<OResult>
    • characteristics

      default int characteristics()
      Specified by:
      characteristics in interface Spliterator<OResult>
    • stream

      default Stream<OResult> stream()
      Returns the result set as a stream. IMPORTANT: the stream consumes the result set!
      Returns:
    • elementStream

      default Stream<OElement> 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<OVertex> 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

      default Stream<OEdge> 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: