Interface InternalListState<K,​N,​T>

    • Method Detail

      • update

        void update​(List<T> values)
             throws Exception
        Updates the operator state accessible by AppendingState.get() by updating existing values to the given list of values. The next time AppendingState.get() is called (for the same state partition) the returned state will represent the updated list.

        If an empty list is passed in, the state value will be null

        Null value passed in or any null value in list is not allowed.

        Specified by:
        update in interface ListState<K>
        Parameters:
        values - The new values for the state.
        Throws:
        Exception - The method may forward exception thrown internally (by I/O or functions, or sanity check for null value).
      • addAll

        void addAll​(List<T> values)
             throws Exception
        Updates the operator state accessible by AppendingState.get() by adding the given values to existing list of values. The next time AppendingState.get() is called (for the same state partition) the returned state will represent the updated list.

        If an empty list is passed in, the state value remains unchanged

        Null value passed in or any null value in list is not allowed.

        Specified by:
        addAll in interface ListState<K>
        Parameters:
        values - The new values to be added to the state.
        Throws:
        Exception - The method may forward exception thrown internally (by I/O or functions, or sanity check for null value).