@Internal public interface StateBinder
Modifier and Type | Method and Description |
---|---|
<IN,ACC,OUT> |
createAggregatingState(AggregatingStateDescriptor<IN,ACC,OUT> stateDesc)
Creates and returns a new
AggregatingState . |
<T,ACC> FoldingState<T,ACC> |
createFoldingState(FoldingStateDescriptor<T,ACC> stateDesc)
Deprecated.
will be removed in a future version in favor of
AggregatingState |
<T> ListState<T> |
createListState(ListStateDescriptor<T> stateDesc)
Creates and returns a new
ListState . |
<MK,MV> MapState<MK,MV> |
createMapState(MapStateDescriptor<MK,MV> stateDesc)
Creates and returns a new
MapState . |
<T> ReducingState<T> |
createReducingState(ReducingStateDescriptor<T> stateDesc)
Creates and returns a new
ReducingState . |
<T> ValueState<T> |
createValueState(ValueStateDescriptor<T> stateDesc)
Creates and returns a new
ValueState . |
<T> ValueState<T> createValueState(ValueStateDescriptor<T> stateDesc) throws Exception
ValueState
.T
- The type of the value that the ValueState
can store.stateDesc
- The StateDescriptor
that contains the name of the state.Exception
<T> ListState<T> createListState(ListStateDescriptor<T> stateDesc) throws Exception
ListState
.T
- The type of the values that the ListState
can store.stateDesc
- The StateDescriptor
that contains the name of the state.Exception
<T> ReducingState<T> createReducingState(ReducingStateDescriptor<T> stateDesc) throws Exception
ReducingState
.T
- The type of the values that the ReducingState
can store.stateDesc
- The StateDescriptor
that contains the name of the state.Exception
<IN,ACC,OUT> AggregatingState<IN,OUT> createAggregatingState(AggregatingStateDescriptor<IN,ACC,OUT> stateDesc) throws Exception
AggregatingState
.IN
- The type of the values that go into the aggregating stateACC
- The type of the values that are stored in the aggregating stateOUT
- The type of the values that come out of the aggregating statestateDesc
- The StateDescriptor
that contains the name of the state.Exception
@Deprecated <T,ACC> FoldingState<T,ACC> createFoldingState(FoldingStateDescriptor<T,ACC> stateDesc) throws Exception
AggregatingState
FoldingState
.T
- Type of the values folded into the stateACC
- Type of the value in the statestateDesc
- The StateDescriptor
that contains the name of the state.Exception
<MK,MV> MapState<MK,MV> createMapState(MapStateDescriptor<MK,MV> stateDesc) throws Exception
MapState
.MK
- Type of the keys in the stateMV
- Type of the values in the statestateDesc
- The StateDescriptor
that contains the name of the state.Exception
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.