Class DynamicFilteringDataCollectorOperator

    • Method Detail

      • 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<Object>
        Overrides:
        open in class AbstractStreamOperator<Object>
        Throws:
        Exception - An exception in this method causes the operator to fail.
      • finish

        public void finish()
                    throws Exception
        Description copied from interface: StreamOperator
        This method is called at the end of data processing.

        The method is expected to flush all remaining buffered data. Exceptions during this flushing of buffered data should be propagated, in order to cause the operation to be recognized as failed, because the last data items are not processed properly.

        After this method is called, no more records can be produced for the downstream operators.

        WARNING: It is not safe to use this method to commit any transactions or other side effects! You can use this method to flush any buffered data that can later on be committed e.g. in a CheckpointListener.notifyCheckpointComplete(long).

        NOTE:This method does not need to close any resources. You should release external resources in the StreamOperator.close() method.

        Specified by:
        finish in interface StreamOperator<Object>
        Overrides:
        finish in class AbstractStreamOperator<Object>
        Throws:
        Exception - An exception in this method causes the operator to fail.
      • close

        public void close()
                   throws Exception
        Description copied from interface: StreamOperator
        This method is called at the very end of the operator's life, both in the case of a successful completion of the operation, and in the case of a failure and canceling.

        This method is expected to make a thorough effort to release all resources that the operator has acquired.

        NOTE:It can not emit any records! If you need to emit records at the end of processing, do so in the StreamOperator.finish() method.

        Specified by:
        close in interface StreamOperator<Object>
        Overrides:
        close in class AbstractStreamOperator<Object>
        Throws:
        Exception