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

    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​(String stateId,
                                  TypeInformation<UK> userKeyTypeInfo,
                                  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​(String stateId,
                                  TypeInformation<UK> userKeyTypeInfo,
                                  TypeInformation<UV> userValueTypeInfo,
                                  SerializerConfig serializerConfig)
        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.
        serializerConfig - The serializer related config used to generate TypeSerializer.