Interface RowReducer<C,R>
- Type Parameters:
C
- mutable result container typeR
- result element type
- All Known Subinterfaces:
LinkedHashMapRowReducer<K,
V>
public interface RowReducer<C,R>
Reduces row data from a
ResultSet
into a stream of result
elements. Useful for collapsing one-to-many joins.- See Also:
-
Method Summary
-
Method Details
-
container
-
accumulate
Accumulate data from the current row into the result container. Do not attempt to accumulate theRowView
itself into the result container--it is only valid within theaccumulate()
method invocation. Instead, extract mapped types from the RowView by callingRowView.getRow()
orRowView.getColumn()
and store those values in the container.- Parameters:
container
- the result containerrowView
- row view over the current result set row.
-
stream
-