Class TableOperatorWrapper<OP extends org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>>

  • All Implemented Interfaces:
    Serializable

    public class TableOperatorWrapper<OP extends org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>>
    extends Object
    implements Serializable
    This class handles the close, endInput and other related logic of a StreamOperator. It also automatically propagates the end-input operation to the next wrapper that the outputEdges points to, so we only need to call the head wrapper's endOperatorInput(int) method.
    See Also:
    Serialized Form
    • Constructor Detail

      • TableOperatorWrapper

        public TableOperatorWrapper​(org.apache.flink.streaming.api.operators.StreamOperatorFactory<org.apache.flink.table.data.RowData> factory,
                                    String operatorName,
                                    List<org.apache.flink.api.common.typeinfo.TypeInformation<?>> allInputTypes,
                                    org.apache.flink.api.common.typeinfo.TypeInformation<?> outputType)
    • Method Detail

      • createOperator

        public void createOperator​(org.apache.flink.streaming.api.operators.StreamOperatorParameters<org.apache.flink.table.data.RowData> parameters)
      • endOperatorInput

        public void endOperatorInput​(int inputId)
                              throws Exception
        Throws:
        Exception
      • getStreamOperator

        public OP getStreamOperator()
      • getAllInputTypes

        public List<org.apache.flink.api.common.typeinfo.TypeInformation<?>> getAllInputTypes()
      • getOutputType

        public org.apache.flink.api.common.typeinfo.TypeInformation<?> getOutputType()
      • setManagedMemoryFraction

        public void setManagedMemoryFraction​(double managedMemoryFraction)
      • getManagedMemoryFraction

        public double getManagedMemoryFraction()
      • isClosed

        public boolean isClosed()
        Checks if the wrapped operator has been closed.

        Note that this method must be called in the task thread.

      • getOperatorName

        public String getOperatorName()
      • getEndedInputCount

        @VisibleForTesting
        public int getEndedInputCount()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object