@PublicEvolving
public interface StateBackend
StateBackend is used by StateDescriptor instances to create actual state
representations.| Modifier and Type | Method and Description |
|---|---|
<T,ACC> FoldingState<T,ACC> |
createFoldingState(FoldingStateDescriptor<T,ACC> stateDesc)
Creates and returns a new
FoldingState. |
<T> ListState<T> |
createListState(ListStateDescriptor<T> stateDesc)
Creates and returns a new
ListState. |
<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 ListState can store.stateDesc - The StateDescriptor that contains the name of the state.Exception<T,ACC> FoldingState<T,ACC> createFoldingState(FoldingStateDescriptor<T,ACC> stateDesc) throws Exception
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.ExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.