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 ClassesModifier and TypeInterfaceDescriptionstatic interface
A representation of a result row accessible as an immutable map view. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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 interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Since:
- 14.0 - Caribou Lou
-