Class ValueStateDescriptor<T>

  • Type Parameters:
    T - The type of the values that the value state can hold.
    All Implemented Interfaces:
    Serializable

    @Experimental
    public class ValueStateDescriptor<T>
    extends StateDescriptor<T>
    StateDescriptor for ValueState. This can be used to create partitioned value state internally.
    See Also:
    Serialized Form
    • Constructor Detail

      • ValueStateDescriptor

        public ValueStateDescriptor​(@Nonnull
                                    String stateId,
                                    @Nonnull
                                    TypeInformation<T> typeInfo)
        Creates a new ValueStateDescriptor 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​(@Nonnull
                                    String stateId,
                                    @Nonnull
                                    TypeSerializer<T> serializer)
        Create a new ValueStateDescriptor with the given stateId and the given type serializer.
        Parameters:
        stateId - The (unique) stateId for the state.
        serializer - The type serializer for the values in the state.
      • ValueStateDescriptor

        public ValueStateDescriptor​(@Nonnull
                                    String stateId,
                                    @Nonnull
                                    Class<T> typeClass)
        Creates a new ValueStateDescriptor with the given name and type

        If this constructor fails (because it is not possible to describe the type via a class), consider using the ValueStateDescriptor(String, TypeInformation) constructor.

        Parameters:
        stateId - The (unique) name for the state.
        typeClass - The type of the values in the state.