InputT
- the type of values added to the stateOutputT
- the type of value extracted from the state@Experimental(value=STATE) public interface GroupingState<InputT,OutputT> extends ReadableState<OutputT>, State
ReadableState
cell that combines multiple input values and outputs a single value of a
different type.
This generalizes GroupByKey
and Combine
styles of grouping.
Modifier and Type | Method and Description |
---|---|
void |
add(InputT value)
Add a value to the buffer.
|
ReadableState<java.lang.Boolean> |
isEmpty()
Return true if this state is empty.
|
GroupingState<InputT,OutputT> |
readLater()
Indicate that the value will be read later.
|
read
void add(InputT value)
ReadableState<java.lang.Boolean> isEmpty()
GroupingState<InputT,OutputT> readLater()
ReadableState
This allows an implementation to start an asynchronous prefetch or to include this state in the next batch of reads.
readLater
in interface ReadableState<OutputT>