Interface SequencedMultiSetState<T>

  • Type Parameters:
    T - The type of elements stored in the state.
    All Known Implementing Classes:
    LinkedMultiSetState

    @Internal
    public interface SequencedMultiSetState<T>
    This class represents an interface for managing an ordered multi-set state in Apache Flink. It provides methods to add, append, and remove elements while maintaining insertion order.

    The state supports two types of semantics for adding elements:

    • Normal Set Semantics: Replaces an existing matching element with the new one.
    • Multi-Set Semantics: Appends the new element, allowing duplicates.

    Removal operations are supported with different result types, indicating the outcome of the removal process, such as whether all elements were removed, the last added element was removed, or no elements were removed.