Class AbstractStatelessFunctionOperator<IN,​OUT,​UDFIN>

  • Type Parameters:
    IN - Type of the input elements.
    OUT - Type of the output elements.
    UDFIN - Type of the UDF input type.
    All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.state.CheckpointListener, 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>, 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:
    AbstractArrowPythonAggregateFunctionOperator, AbstractPythonScalarFunctionOperator, PythonTableFunctionOperator

    @Internal
    public abstract class AbstractStatelessFunctionOperator<IN,​OUT,​UDFIN>
    extends AbstractOneInputPythonFunctionOperator<IN,​OUT>
    Base class for all stream operators to execute Python Stateless Functions.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.flink.core.memory.ByteArrayInputStreamWithPos bais
      Reusable InputStream used to holding the execution results to be deserialized.
      protected org.apache.flink.core.memory.DataInputViewStreamWrapper baisWrapper
      InputStream Wrapper.
      protected org.apache.flink.core.memory.ByteArrayOutputStreamWithPos baos
      Reusable OutputStream used to holding the serialized input elements.
      protected org.apache.flink.core.memory.DataOutputViewStreamWrapper baosWrapper
      OutputStream Wrapper.
      protected LinkedList<IN> forwardedInputQueue
      The queue holding the input elements for which the execution results have not been received.
      protected org.apache.flink.table.types.logical.RowType inputType
      The input logical type.
      protected org.apache.flink.table.types.logical.RowType udfInputType
      The user-defined function input logical type.
      protected org.apache.flink.table.types.logical.RowType udfOutputType
      The user-defined function output logical type.
      • Fields inherited from class org.apache.flink.streaming.api.operators.AbstractStreamOperator

        combinedWatermark, lastRecordAttributes1, lastRecordAttributes2, latencyStats, LOG, metrics, output, processingTimeService, stateHandler, stateKeySelector1, stateKeySelector2, timeServiceManager
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractStatelessFunctionOperator​(org.apache.flink.configuration.Configuration config, org.apache.flink.table.types.logical.RowType inputType, org.apache.flink.table.types.logical.RowType udfInputType, org.apache.flink.table.types.logical.RowType udfOutputType)  
    • Field Detail

      • inputType

        protected final org.apache.flink.table.types.logical.RowType inputType
        The input logical type.
      • udfInputType

        protected final org.apache.flink.table.types.logical.RowType udfInputType
        The user-defined function input logical type.
      • udfOutputType

        protected final org.apache.flink.table.types.logical.RowType udfOutputType
        The user-defined function output logical type.
      • forwardedInputQueue

        protected transient LinkedList<IN> forwardedInputQueue
        The queue holding the input elements for which the execution results have not been received.
      • bais

        protected transient org.apache.flink.core.memory.ByteArrayInputStreamWithPos bais
        Reusable InputStream used to holding the execution results to be deserialized.
      • baisWrapper

        protected transient org.apache.flink.core.memory.DataInputViewStreamWrapper baisWrapper
        InputStream Wrapper.
      • 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

      • AbstractStatelessFunctionOperator

        public AbstractStatelessFunctionOperator​(org.apache.flink.configuration.Configuration config,
                                                 org.apache.flink.table.types.logical.RowType inputType,
                                                 org.apache.flink.table.types.logical.RowType udfInputType,
                                                 org.apache.flink.table.types.logical.RowType udfOutputType)