T - The type of each value that the list state can hold.public class ListStateDescriptor<T> extends StateDescriptor<T>
StateDescriptor for ListState. This can be used to create partitioned list state
internally.StateDescriptor.Type| 构造器和说明 |
|---|
ListStateDescriptor(String stateId,
org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
Creates a new
ListStateDescriptor with 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 new
ListStateDescriptor with the given stateId and type. |
| 限定符和类型 | 方法和说明 |
|---|---|
StateDescriptor.Type |
getType()
Return the specific
Type of described state. |
enableTimeToLive, equals, getSerializer, getStateId, getTtlConfig, hashCode, toStringpublic ListStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
ListStateDescriptor with the given stateId and type.stateId - The (unique) stateId for the state.typeInfo - The type of the values in the state.public ListStateDescriptor(String stateId, org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo, org.apache.flink.api.common.serialization.SerializerConfig serializerConfig)
ListStateDescriptor 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 在类中 StateDescriptor<T>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.