Class ValueStateDescriptor<T>
- java.lang.Object
-
- org.apache.flink.runtime.state.v2.StateDescriptor<T>
-
- org.apache.flink.runtime.state.v2.ValueStateDescriptor<T>
-
- Type Parameters:
T
- The type of the values that the value state can hold.
- All Implemented Interfaces:
Serializable
public class ValueStateDescriptor<T> extends StateDescriptor<T>
StateDescriptor
forValueState
. This can be used to create partitioned value state internally.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.state.v2.StateDescriptor
StateDescriptor.Type
-
-
Constructor Summary
Constructors Constructor Description ValueStateDescriptor(String stateId, TypeInformation<T> typeInfo)
Creates a newValueStateDescriptor
with the given stateId and type.ValueStateDescriptor(String stateId, TypeInformation<T> typeInfo, SerializerConfig serializerConfig)
Creates a newValueStateDescriptor
with the given stateId and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateDescriptor.Type
getType()
Return the specificType
of described state.-
Methods inherited from class org.apache.flink.runtime.state.v2.StateDescriptor
enableTimeToLive, equals, getSerializer, getStateId, getTtlConfig, hashCode, toString
-
-
-
-
Constructor Detail
-
ValueStateDescriptor
public ValueStateDescriptor(String stateId, TypeInformation<T> typeInfo)
Creates a newValueStateDescriptor
with the given stateId and type.- Parameters:
stateId
- The (unique) stateId for the state.typeInfo
- The type of the values in the state.
-
ValueStateDescriptor
public ValueStateDescriptor(String stateId, TypeInformation<T> typeInfo, SerializerConfig serializerConfig)
Creates a newValueStateDescriptor
with the given stateId and type.- Parameters:
stateId
- The (unique) stateId for the state.typeInfo
- The type of the values in the state.serializerConfig
- The serializer related config used to generateTypeSerializer
.
-
-
Method Detail
-
getType
public StateDescriptor.Type getType()
Description copied from class:StateDescriptor
Return the specificType
of described state.- Specified by:
getType
in classStateDescriptor<T>
-
-