Class QueryableValueStateOperator<IN>

    • Field Detail

      • stateDescriptor

        protected final StateDescriptor<? extends S extends 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 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)).
    • 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 State>
        Overrides:
        open in class AbstractStreamOperator<IN>
        Throws:
        Exception - An exception in this method causes the operator to fail.