Class 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>
    StateDescriptor for ListState. This can be used to create partitioned list state internally.
    See Also:
    Serialized Form
    • Constructor Detail

      • ListStateDescriptor

        public ListStateDescriptor​(String stateId,
                                   org.apache.flink.api.common.typeinfo.TypeInformation<T> typeInfo)
        Creates a new ListStateDescriptor with 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 new ListStateDescriptor 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 generate TypeSerializer.