Interface PipelineStage.ResultStream

All Superinterfaces:
AutoCloseable, Closeable, Iterator<PipelineStage.ResultStream.ResultRow>
Enclosing interface:
PipelineStage

public static interface PipelineStage.ResultStream extends Iterator<PipelineStage.ResultStream.ResultRow>, Closeable
The result type to be consumed by the function given to PipelineStage.stream(Function).

Simply an iterator over PipelineStage.ResultStream.ResultRow.

Since:
14.0 - Caribou Lou
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A representation of a result row accessible as an immutable map view.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the result stream and its corresponding database connection.

    Methods inherited from interface Iterator

    forEachRemaining, hasNext, next, remove
  • Method Details

    • close

      void close()
      Closes the result stream and its corresponding database connection.

      This method is automatically called at the end of the execution of PipelineStage.stream(Function) or in case of any exception. So, calling this method is not mandatory unless a specific reason to release its underlying resources at a given point in the client code,

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Since:
      14.0 - Caribou Lou