Class TableOperatorWrapper<OP extends org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>>
java.lang.Object
org.apache.flink.table.runtime.operators.multipleinput.TableOperatorWrapper<OP>
- 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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTableOperatorWrapper(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 Summary
Modifier and TypeMethodDescriptionvoidaddInput(TableOperatorWrapper<?> input, int inputId) voidclose()voidcreateOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<org.apache.flink.table.data.RowData> parameters) voidendOperatorInput(int inputId) booleanList<org.apache.flink.api.common.typeinfo.TypeInformation<?>>intdoubleorg.apache.flink.api.common.typeinfo.TypeInformation<?>inthashCode()booleanisClosed()Checks if the wrapped operator has been closed.voidsetManagedMemoryFraction(double managedMemoryFraction) toString()
-
Constructor Details
-
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 Details
-
createOperator
public void createOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<org.apache.flink.table.data.RowData> parameters) -
endOperatorInput
- Throws:
Exception
-
getStreamOperator
-
getAllInputTypes
-
getOutputType
public org.apache.flink.api.common.typeinfo.TypeInformation<?> getOutputType() -
addInput
-
setManagedMemoryFraction
public void setManagedMemoryFraction(double managedMemoryFraction) -
getManagedMemoryFraction
public double getManagedMemoryFraction() -
getInputEdges
-
getInputWrappers
-
getOutputEdges
-
getOutputWrappers
-
isClosed
public boolean isClosed()Checks if the wrapped operator has been closed.Note that this method must be called in the task thread.
-
close
- Throws:
Exception
-
getOperatorName
-
getEndedInputCount
@VisibleForTesting public int getEndedInputCount() -
equals
-
hashCode
public int hashCode() -
toString
-