Class QueryableAppendingStateOperator<IN>

    • Field Detail

      • stateDescriptor

        protected final org.apache.flink.api.common.state.StateDescriptor<? extends S extends org.apache.flink.api.common.state.State,​?> stateDescriptor
        State descriptor for the queryable state instance.
      • registrationName

        protected final String registrationName
        Name under which the queryable state is registered.
      • state

        protected transient S extends org.apache.flink.api.common.state.State state
        The state instance created on open. This is updated by the subclasses of this class, because the state update interface depends on the state type (e.g. AppendingState#add(IN) vs. ValueState#update(OUT)).
    • Constructor Detail

      • QueryableAppendingStateOperator

        public QueryableAppendingStateOperator​(String registrationName,
                                               org.apache.flink.api.common.state.StateDescriptor<? extends org.apache.flink.api.common.state.AppendingState<IN,​?>,​?> stateDescriptor)
    • Method Detail

      • processElement

        public void processElement​(StreamRecord<IN> element)
                            throws Exception
        Description copied from interface: Input
        Processes one element that arrived on this input of the MultipleInputStreamOperator. This method is guaranteed to not be called concurrently with other methods of the operator.
        Throws:
        Exception
      • open

        public void open()
                  throws Exception
        Description copied from class: AbstractStreamOperator
        This method is called immediately before any elements are processed, it should contain the operator's initialization logic, e.g. state initialization.

        The default implementation does nothing.

        Specified by:
        open in interface StreamOperator<S extends org.apache.flink.api.common.state.State>
        Overrides:
        open in class AbstractStreamOperator<IN>
        Throws:
        Exception - An exception in this method causes the operator to fail.