public class TableOperatorWrapper<OP extends StreamOperator<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
TableOperatorWrapper s. |
Constructor and Description |
---|
TableOperatorWrapper(StreamOperatorFactory<RowData> factory,
String operatorName,
List<TypeInformation<?>> allInputTypes,
TypeInformation<?> outputType) |
Modifier and Type | Method and 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() |
public TableOperatorWrapper(StreamOperatorFactory<RowData> factory, String operatorName, List<TypeInformation<?>> allInputTypes, TypeInformation<?> outputType)
public void createOperator(StreamOperatorParameters<RowData> parameters)
public OP getStreamOperator()
public List<TypeInformation<?>> getAllInputTypes()
public 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.