Class ReducingStateDescriptor<T>

    • Constructor Detail

      • ReducingStateDescriptor

        public ReducingStateDescriptor​(String name,
                                       ReduceFunction<T> reduceFunction,
                                       Class<T> typeClass)
        Creates a new ReducingStateDescriptor with the given name, type, and default value.

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

        Parameters:
        name - The (unique) name for the state.
        reduceFunction - The ReduceFunction used to aggregate the state.
        typeClass - The type of the values in the state.
      • ReducingStateDescriptor

        public ReducingStateDescriptor​(String name,
                                       ReduceFunction<T> reduceFunction,
                                       TypeInformation<T> typeInfo)
        Creates a new ReducingStateDescriptor with the given name and default value.
        Parameters:
        name - The (unique) name for the state.
        reduceFunction - The ReduceFunction used to aggregate the state.
        typeInfo - The type of the values in the state.
      • ReducingStateDescriptor

        public ReducingStateDescriptor​(String name,
                                       ReduceFunction<T> reduceFunction,
                                       TypeSerializer<T> typeSerializer)
        Creates a new ValueStateDescriptor with the given name and default value.
        Parameters:
        name - The (unique) name for the state.
        reduceFunction - The ReduceFunction used to aggregate the state.
        typeSerializer - The type serializer of the values in the state.