Interface State

  • All Known Subinterfaces:
    AggregatingState<IN,​OUT>, AppendingState<IN,​OUT>, BroadcastState<K,​V>, ListState<T>, MapState<UK,​UV>, MergingState<IN,​OUT>, ReadOnlyBroadcastState<K,​V>, ReducingState<T>, ValueState<T>

    @PublicEvolving
    public interface State
    Interface that different types of partitioned state must implement.

    The state is only accessible by functions applied on a KeyedStream. The key is automatically supplied by the system, so the function always sees the value mapped to the key of the current element. That way, the system can handle stream and state partitioning consistently together.

    • Method Detail

      • clear

        void clear()
        Removes the value mapped under the current key.