public class TableOperatorWrapper<OP extends org.apache.flink.streaming.api.operators.StreamOperator<org.apache.flink.table.data.RowData>> extends Object implements Serializable
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.| Modifier and Type | Class and Description |
|---|---|
static class |
TableOperatorWrapper.Edge
The edge connecting two
TableOperatorWrappers. |
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInput(TableOperatorWrapper<?> input,
int inputId) |
void |
close() |
void |
createOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<org.apache.flink.table.data.RowData> parameters) |
void |
endOperatorInput(int inputId) |
boolean |
equals(Object o) |
List<org.apache.flink.api.common.typeinfo.TypeInformation<?>> |
getAllInputTypes() |
int |
getEndedInputCount() |
List<TableOperatorWrapper.Edge> |
getInputEdges() |
List<TableOperatorWrapper<?>> |
getInputWrappers() |
double |
getManagedMemoryFraction() |
String |
getOperatorName() |
List<TableOperatorWrapper.Edge> |
getOutputEdges() |
org.apache.flink.api.common.typeinfo.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() |
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)
public void createOperator(org.apache.flink.streaming.api.operators.StreamOperatorParameters<org.apache.flink.table.data.RowData> parameters)
public OP getStreamOperator()
public List<org.apache.flink.api.common.typeinfo.TypeInformation<?>> getAllInputTypes()
public org.apache.flink.api.common.typeinfo.TypeInformation<?> getOutputType()
public void addInput(TableOperatorWrapper<?> input, int inputId)
public void setManagedMemoryFraction(double managedMemoryFraction)
public double getManagedMemoryFraction()
public List<TableOperatorWrapper.Edge> getInputEdges()
public List<TableOperatorWrapper<?>> getInputWrappers()
public List<TableOperatorWrapper.Edge> getOutputEdges()
public List<TableOperatorWrapper<?>> getOutputWrappers()
public boolean isClosed()
Note that this method must be called in the task thread.
public String getOperatorName()
@VisibleForTesting public int getEndedInputCount()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.