Class StreamProject<IN,OUT extends org.apache.flink.api.java.tuple.Tuple>

java.lang.Object
org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT>
org.apache.flink.streaming.api.operators.StreamProject<IN,OUT>
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.state.CheckpointListener, Input<IN>, KeyContext, KeyContextHandler, OneInputStreamOperator<IN,OUT>, StreamOperator<OUT>, StreamOperatorStateHandler.CheckpointedStreamOperator, YieldingOperator<OUT>

@Internal public class StreamProject<IN,OUT extends org.apache.flink.api.java.tuple.Tuple> extends AbstractStreamOperator<OUT> implements OneInputStreamOperator<IN,OUT>
A StreamOperator for executing projections on streams.
See Also:
  • Constructor Details

    • StreamProject

      public StreamProject(int[] fields, org.apache.flink.api.common.typeutils.TypeSerializer<OUT> outSerializer)
  • Method Details

    • 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.
      Specified by:
      processElement in interface Input<IN>
      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<IN>
      Overrides:
      open in class AbstractStreamOperator<OUT extends org.apache.flink.api.java.tuple.Tuple>
      Throws:
      Exception - An exception in this method causes the operator to fail.