T - The return type of the TableSink.public abstract class CommonExecLegacySink<T> extends ExecNodeBase<T> implements MultipleTransformationTranslator<T>
ExecNode to to write data into an external sink defined by a TableSink.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isStreaming |
protected boolean |
needRetraction |
protected org.apache.flink.table.sinks.TableSink<T> |
tableSink |
protected String[] |
upsertKeys |
FIELD_NAME_CONFIGURATION, FIELD_NAME_DESCRIPTION, FIELD_NAME_ID, FIELD_NAME_INPUT_PROPERTIES, FIELD_NAME_OUTPUT_TYPE, FIELD_NAME_TYPE| Constructor and Description |
|---|
CommonExecLegacySink(int id,
ExecNodeContext context,
org.apache.flink.configuration.ReadableConfig persistedConfig,
org.apache.flink.table.sinks.TableSink<T> tableSink,
String[] upsertKeys,
boolean needRetraction,
boolean isStreaming,
InputProperty inputProperty,
org.apache.flink.table.types.logical.LogicalType outputType,
String description) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.flink.table.types.logical.RowType |
checkAndConvertInputTypeIfNeeded(org.apache.flink.table.types.logical.RowType inputRowType)
Check whether the given row type is legal and do some conversion if needed.
|
protected org.apache.flink.api.dag.Transformation<T> |
translateToPlanInternal(org.apache.flink.table.planner.delegation.PlannerBase planner,
ExecNodeConfig config)
Internal method, translates this node into a Flink operator.
|
accept, createFormattedTransformationDescription, createFormattedTransformationName, createTransformationDescription, createTransformationMeta, createTransformationMeta, createTransformationName, createTransformationUid, getContextFromAnnotation, getDescription, getId, getInputEdges, getInputProperties, getOutputType, getPersistedConfig, getSimplifiedName, inputsContainSingleton, replaceInputEdge, setCompiled, setInputEdges, translateToPlanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittranslateToPlanprotected final org.apache.flink.table.sinks.TableSink<T> tableSink
protected final boolean needRetraction
protected final boolean isStreaming
public CommonExecLegacySink(int id,
ExecNodeContext context,
org.apache.flink.configuration.ReadableConfig persistedConfig,
org.apache.flink.table.sinks.TableSink<T> tableSink,
@Nullable
String[] upsertKeys,
boolean needRetraction,
boolean isStreaming,
InputProperty inputProperty,
org.apache.flink.table.types.logical.LogicalType outputType,
String description)
protected org.apache.flink.api.dag.Transformation<T> translateToPlanInternal(org.apache.flink.table.planner.delegation.PlannerBase planner, ExecNodeConfig config)
ExecNodeBasetranslateToPlanInternal in class ExecNodeBase<T>planner - The planner.config - per-ExecNode configuration that contains the merged configuration from
various layers which all the nodes implementing this method should use, instead of
retrieving configuration from the planner. For more details check ExecNodeConfig.protected abstract org.apache.flink.table.types.logical.RowType checkAndConvertInputTypeIfNeeded(org.apache.flink.table.types.logical.RowType inputRowType)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.