Package org.jdbi.v3.core.result
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
C container()Returns a new, empty result container.- Returns:
 - a new result container.
 
 - 
accumulate
Accumulate data from the current row into the result container. Do not attempt to accumulate theRowViewitself 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
Returns a stream of result elements from the result container.- Parameters:
 container- the result container- Returns:
 - stream of result elements.
 
 
 -