T - Type of the values folded in the other stateACC - Type of the value in the stateAggregatingStateDescriptor@PublicEvolving @Deprecated public class FoldingStateDescriptor<T,ACC> extends StateDescriptor<FoldingState<T,ACC>,ACC>
StateDescriptor for FoldingState. This can be used to create partitioned
folding state.StateDescriptor.TypedefaultValue, name, serializer| Constructor and Description |
|---|
FoldingStateDescriptor(String name,
ACC initialValue,
FoldFunction<T,ACC> foldFunction,
Class<ACC> typeClass)
Deprecated.
Creates a new
FoldingStateDescriptor with the given name, type, and initial value. |
FoldingStateDescriptor(String name,
ACC initialValue,
FoldFunction<T,ACC> foldFunction,
TypeInformation<ACC> typeInfo)
Deprecated.
Creates a new
FoldingStateDescriptor with the given name and default value. |
FoldingStateDescriptor(String name,
ACC initialValue,
FoldFunction<T,ACC> foldFunction,
TypeSerializer<ACC> typeSerializer)
Deprecated.
Creates a new
ValueStateDescriptor with the given name and default value. |
| Modifier and Type | Method and Description |
|---|---|
FoldFunction<T,ACC> |
getFoldFunction()
Deprecated.
Returns the fold function to be used for the folding state.
|
StateDescriptor.Type |
getType()
Deprecated.
|
enableTimeToLive, equals, getDefaultValue, getName, getQueryableStateName, getSerializer, getTtlConfig, hashCode, initializeSerializerUnlessSet, isQueryable, isSerializerInitialized, setQueryable, toStringpublic FoldingStateDescriptor(String name, ACC initialValue, FoldFunction<T,ACC> foldFunction, Class<ACC> typeClass)
FoldingStateDescriptor with the given name, type, and initial value.
If this constructor fails (because it is not possible to describe the type via a class),
consider using the #FoldingStateDescriptor(String, ACC, FoldFunction, TypeInformation) constructor.
name - The (unique) name for the state.initialValue - The initial value of the fold.foldFunction - The FoldFunction used to aggregate the state.typeClass - The type of the values in the state.public FoldingStateDescriptor(String name, ACC initialValue, FoldFunction<T,ACC> foldFunction, TypeInformation<ACC> typeInfo)
FoldingStateDescriptor with the given name and default value.name - The (unique) name for the state.initialValue - The initial value of the fold.foldFunction - The FoldFunction used to aggregate the state.typeInfo - The type of the values in the state.public FoldingStateDescriptor(String name, ACC initialValue, FoldFunction<T,ACC> foldFunction, TypeSerializer<ACC> typeSerializer)
ValueStateDescriptor with the given name and default value.name - The (unique) name for the state.initialValue - The initial value of the fold.foldFunction - The FoldFunction used to aggregate the state.typeSerializer - The type serializer of the values in the state.public FoldFunction<T,ACC> getFoldFunction()
public StateDescriptor.Type getType()
getType in class StateDescriptor<FoldingState<T,ACC>,ACC>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.