Class AbstractExternalOneInputPythonFunctionOperator<IN,​OUT>

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.state.CheckpointListener, org.apache.flink.api.java.typeutils.ResultTypeQueryable<OUT>, org.apache.flink.streaming.api.operators.BoundedOneInput, org.apache.flink.streaming.api.operators.Input<IN>, org.apache.flink.streaming.api.operators.KeyContext, org.apache.flink.streaming.api.operators.KeyContextHandler, org.apache.flink.streaming.api.operators.OneInputStreamOperator<IN,​OUT>, DataStreamPythonFunctionOperator<OUT>, org.apache.flink.streaming.api.operators.SetupableStreamOperator<OUT>, org.apache.flink.streaming.api.operators.StreamOperator<OUT>, org.apache.flink.streaming.api.operators.StreamOperatorStateHandler.CheckpointedStreamOperator, org.apache.flink.streaming.api.operators.YieldingOperator<OUT>
    Direct Known Subclasses:
    ExternalPythonKeyedProcessOperator, ExternalPythonProcessOperator

    @Internal
    public abstract class AbstractExternalOneInputPythonFunctionOperator<IN,​OUT>
    extends AbstractExternalDataStreamPythonFunctionOperator<OUT>
    implements org.apache.flink.streaming.api.operators.OneInputStreamOperator<IN,​OUT>, org.apache.flink.streaming.api.operators.BoundedOneInput
    AbstractExternalOneInputPythonFunctionOperator is responsible for launching beam runner which will start a python harness to execute user defined python function.

    The operator will buffer the timestamp of input elements in a queue, and set into the produced output element.

    See Also:
    Serialized Form
    • Field Detail

      • baos

        protected transient org.apache.flink.core.memory.ByteArrayOutputStreamWithPos baos
        Reusable OutputStream used to holding the serialized input elements.
      • baosWrapper

        protected transient org.apache.flink.core.memory.DataOutputViewStreamWrapper baosWrapper
        OutputStream Wrapper.
    • Constructor Detail

      • AbstractExternalOneInputPythonFunctionOperator

        public AbstractExternalOneInputPythonFunctionOperator​(org.apache.flink.configuration.Configuration config,
                                                              DataStreamPythonFunctionInfo pythonFunctionInfo,
                                                              org.apache.flink.api.common.typeinfo.TypeInformation<IN> inputTypeInfo,
                                                              org.apache.flink.api.common.typeinfo.TypeInformation<OUT> outputTypeInfo)