Class TableOperatorWrapper<OP extends StreamOperator<RowData>>
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.multipleinput.TableOperatorWrapper<OP>
-
- All Implemented Interfaces:
Serializable
public class TableOperatorWrapper<OP extends StreamOperator<RowData>> extends Object implements Serializable
This class handles the close, endInput and other related logic of aStreamOperator
. It also automatically propagates the end-input operation to the next wrapper that theoutputEdges
points to, so we only need to call the head wrapper'sendOperatorInput(int)
method.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableOperatorWrapper.Edge
The edge connecting twoTableOperatorWrapper
s.
-
Constructor Summary
Constructors Constructor Description TableOperatorWrapper(StreamOperatorFactory<RowData> factory, String operatorName, List<TypeInformation<?>> allInputTypes, TypeInformation<?> outputType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInput(TableOperatorWrapper<?> input, int inputId)
void
close()
void
createOperator(StreamOperatorParameters<RowData> parameters)
void
endOperatorInput(int inputId)
boolean
equals(Object o)
List<TypeInformation<?>>
getAllInputTypes()
int
getEndedInputCount()
List<TableOperatorWrapper.Edge>
getInputEdges()
List<TableOperatorWrapper<?>>
getInputWrappers()
double
getManagedMemoryFraction()
String
getOperatorName()
List<TableOperatorWrapper.Edge>
getOutputEdges()
TypeInformation<?>
getOutputType()
List<TableOperatorWrapper<?>>
getOutputWrappers()
OP
getStreamOperator()
int
hashCode()
boolean
isClosed()
Checks if the wrapped operator has been closed.void
setManagedMemoryFraction(double managedMemoryFraction)
String
toString()
-
-
-
Constructor Detail
-
TableOperatorWrapper
public TableOperatorWrapper(StreamOperatorFactory<RowData> factory, String operatorName, List<TypeInformation<?>> allInputTypes, TypeInformation<?> outputType)
-
-
Method Detail
-
createOperator
public void createOperator(StreamOperatorParameters<RowData> parameters)
-
getStreamOperator
public OP getStreamOperator()
-
getAllInputTypes
public List<TypeInformation<?>> getAllInputTypes()
-
getOutputType
public TypeInformation<?> getOutputType()
-
addInput
public void addInput(TableOperatorWrapper<?> input, int inputId)
-
setManagedMemoryFraction
public void setManagedMemoryFraction(double managedMemoryFraction)
-
getManagedMemoryFraction
public double getManagedMemoryFraction()
-
getInputEdges
public List<TableOperatorWrapper.Edge> getInputEdges()
-
getInputWrappers
public List<TableOperatorWrapper<?>> getInputWrappers()
-
getOutputEdges
public List<TableOperatorWrapper.Edge> getOutputEdges()
-
getOutputWrappers
public List<TableOperatorWrapper<?>> getOutputWrappers()
-
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()
-
-