T - The type of the values that the value state can hold.public class ValueStateDescriptor<T> extends StateDescriptor<T>
StateDescriptor for ValueState. This can be used to create partitioned value
state internally.StateDescriptor.Type| Constructor and Description |
|---|
ValueStateDescriptor(String stateId,
org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
Creates a new
ValueStateDescriptor with the given stateId and type. |
ValueStateDescriptor(String stateId,
org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo,
org.apache.flink.api.common.serialization.SerializerConfig serializerConfig)
Creates a new
ValueStateDescriptor with the given stateId and type. |
| Modifier and Type | Method and Description |
|---|---|
StateDescriptor.Type |
getType()
Return the specific
Type of described state. |
enableTimeToLive, equals, getSerializer, getStateId, getTtlConfig, hashCode, toStringpublic ValueStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
ValueStateDescriptor with the given stateId and type.stateId - The (unique) stateId for the state.typeInfo - The type of the values in the state.public ValueStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, org.apache.flink.api.common.serialization.SerializerConfig serializerConfig)
ValueStateDescriptor with the given stateId and type.stateId - The (unique) stateId for the state.typeInfo - The type of the values in the state.serializerConfig - The serializer related config used to generate TypeSerializer.public StateDescriptor.Type getType()
StateDescriptorType of described state.getType in class StateDescriptor<T>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.