C - mutable result container typeR - result element typepublic interface RowReducer<C,R>
ResultSet into a stream of result
elements. Useful for collapsing one-to-many joins.ResultBearing.reduceRows(RowReducer)| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(C container,
RowView rowView)
Accumulate data from the current row into the result container.
|
C |
container()
Returns a new, empty result container.
|
Stream<R> |
stream(C container)
Returns a stream of result elements from the result container.
|
void accumulate(C container, RowView rowView)
RowView itself into the result container--it is only
valid within the accumulate()
method invocation. Instead, extract mapped types from the RowView by calling
RowView.getRow() or RowView.getColumn() and store those values
in the container.container - the result containerrowView - row view over the current result set row.C container()
Copyright © 2019. All rights reserved.