Class MapStateDescriptor<UK,​UV>

  • Type Parameters:
    UK - The type of the user key for this map state.
    UV - The type of the values that the map state can hold.
    All Implemented Interfaces:
    Serializable

    @Experimental
    public class MapStateDescriptor<UK,​UV>
    extends StateDescriptor<UV>
    StateDescriptor for MapState. This can be used to create partitioned map state internally.
    See Also:
    Serialized Form
    • Constructor Detail

      • MapStateDescriptor

        public MapStateDescriptor​(@Nonnull
                                  String stateId,
                                  @Nonnull
                                  TypeInformation<UK> userKeyTypeInfo,
                                  @Nonnull
                                  TypeInformation<UV> userValueTypeInfo)
        Creates a new MapStateDescriptor with the given stateId and type.
        Parameters:
        stateId - The (unique) stateId for the state.
        userKeyTypeInfo - The type of the user keys in the state.
        userValueTypeInfo - The type of the values in the state.
      • MapStateDescriptor

        public MapStateDescriptor​(@Nonnull
                                  String stateId,
                                  @Nonnull
                                  TypeSerializer<UK> userKeySerializer,
                                  @Nonnull
                                  TypeSerializer<UV> userValueSerializer)
        Create a new MapStateDescriptor with the given stateId and the given type serializer.
        Parameters:
        stateId - The (unique) stateId for the state.
        userKeySerializer - The serializer for the user keys in the state.
        userValueSerializer - The serializer for the user values in the state.
      • MapStateDescriptor

        public MapStateDescriptor​(String name,
                                  Class<UK> keyClass,
                                  Class<UV> valueClass)
        Create a new MapStateDescriptor with the given name and the given type information.

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

        Parameters:
        name - The name of the MapStateDescriptor.
        keyClass - The class of the type of keys in the state.
        valueClass - The class of the type of values in the state.