Class ListStateDescriptor<T>
- java.lang.Object
-
- org.apache.flink.runtime.state.v2.StateDescriptor<T>
-
- org.apache.flink.runtime.state.v2.ListStateDescriptor<T>
-
- Type Parameters:
T- The type of each value that the list state can hold.
- All Implemented Interfaces:
Serializable
public class ListStateDescriptor<T> extends StateDescriptor<T>
StateDescriptorforListState. This can be used to create partitioned list 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 ListStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)Creates a newListStateDescriptorwith the given stateId and type.ListStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, org.apache.flink.api.common.serialization.SerializerConfig serializerConfig)Creates a newListStateDescriptorwith the given stateId and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateDescriptor.TypegetType()Return the specificTypeof described state.-
Methods inherited from class org.apache.flink.runtime.state.v2.StateDescriptor
enableTimeToLive, equals, getSerializer, getStateId, getTtlConfig, hashCode, toString
-
-
-
-
Constructor Detail
-
ListStateDescriptor
public ListStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
Creates a newListStateDescriptorwith the given stateId and type.- Parameters:
stateId- The (unique) stateId for the state.typeInfo- The type of the values in the state.
-
ListStateDescriptor
public ListStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, org.apache.flink.api.common.serialization.SerializerConfig serializerConfig)
Creates a newListStateDescriptorwith 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:StateDescriptorReturn the specificTypeof described state.- Specified by:
getTypein classStateDescriptor<T>
-
-