Class ImmutableAggregatingState<IN,​OUT>

  • All Implemented Interfaces:
    org.apache.flink.api.common.state.AggregatingState<IN,​OUT>, org.apache.flink.api.common.state.AppendingState<IN,​OUT>, org.apache.flink.api.common.state.MergingState<IN,​OUT>, org.apache.flink.api.common.state.State

    public final class ImmutableAggregatingState<IN,​OUT>
    extends Object
    implements org.apache.flink.api.common.state.AggregatingState<IN,​OUT>
    A read-only AggregatingState that does not allow for modifications.

    This is the type of the result returned when querying Flink's keyed state using the Queryable State Client and providing an AggregatingStateDescriptor.

    • Method Detail

      • get

        public OUT get()
        Specified by:
        get in interface org.apache.flink.api.common.state.AppendingState<IN,​OUT>
      • add

        public void add​(Object newValue)
        Specified by:
        add in interface org.apache.flink.api.common.state.AppendingState<IN,​OUT>
      • clear

        public void clear()
        Specified by:
        clear in interface org.apache.flink.api.common.state.State
      • createState

        public static <OUT,​ACC,​S extends org.apache.flink.api.common.state.State> S createState​(org.apache.flink.api.common.state.StateDescriptor<S,​ACC> stateDescriptor,
                                                                                                            byte[] serializedState)
                                                                                                     throws IOException
        Throws:
        IOException