ELEMENT - the element type of the streampublic interface StreamMappable<ELEMENT> extends Listable<ELEMENT>
| Modifier and Type | Method and Description |
|---|---|
default <RESULT> RESULT |
collect(java.util.stream.Collector<ELEMENT,?,RESULT> collector)
Collect a stream.
|
<RESULT> RESULT |
mapStream(java.util.function.Function<java.util.stream.Stream<ELEMENT>,RESULT> streamMapper)
Map a stream.
|
java.util.stream.Stream<ELEMENT> |
openStream()
Open a stream.
|
StreamMappable<ELEMENT> |
peek(java.util.function.Consumer<Sql<?>> consumer)
Peeks the built SQL.
|
fetch, fetchOne, fetchOptional, streamjava.util.stream.Stream<ELEMENT> openStream()
You must close the stream after using it.
<RESULT> RESULT mapStream(java.util.function.Function<java.util.stream.Stream<ELEMENT>,RESULT> streamMapper)
RESULT - the mapped resultstreamMapper - the mapperdefault <RESULT> RESULT collect(java.util.stream.Collector<ELEMENT,?,RESULT> collector)
RESULT - the collected resultcollector - the collectorStreamMappable<ELEMENT> peek(java.util.function.Consumer<Sql<?>> consumer)
Buildable