@Internal public class SinkModifyOperation extends Object implements ModifyOperation
The sink is described by getContextResolvedTable(), and in general is used for every
sink which implementation is defined with DynamicTableSink. DataStream and TableResult.collect() sinks are handled by respectively ExternalModifyOperation and
CollectModifyOperation.
| Modifier and Type | Class and Description |
|---|---|
static class |
SinkModifyOperation.ModifyType
The type of sink modification.
|
| Modifier and Type | Field and Description |
|---|---|
protected ContextResolvedTable |
contextResolvedTable |
| Constructor and Description |
|---|
SinkModifyOperation(ContextResolvedTable contextResolvedTable,
QueryOperation child) |
SinkModifyOperation(ContextResolvedTable contextResolvedTable,
QueryOperation child,
int[][] targetColumns,
SinkModifyOperation.ModifyType modifyType) |
SinkModifyOperation(ContextResolvedTable contextResolvedTable,
QueryOperation child,
Map<String,String> staticPartitions,
int[][] targetColumns,
boolean overwrite,
Map<String,String> dynamicOptions) |
SinkModifyOperation(ContextResolvedTable contextResolvedTable,
QueryOperation child,
Map<String,String> staticPartitions,
int[][] targetColumns,
boolean overwrite,
Map<String,String> dynamicOptions,
SinkModifyOperation.ModifyType modifyType) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ModifyOperationVisitor<T> visitor) |
String |
asSummaryString()
Returns a string that summarizes this operation for printing to a console.
|
QueryOperation |
getChild() |
ContextResolvedTable |
getContextResolvedTable() |
Map<String,String> |
getDynamicOptions() |
Map<String,String> |
getStaticPartitions() |
int[][] |
getTargetColumns()
return null when no column list specified.
|
boolean |
isDelete() |
boolean |
isOverwrite() |
boolean |
isUpdate() |
protected final ContextResolvedTable contextResolvedTable
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child)
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, int[][] targetColumns, SinkModifyOperation.ModifyType modifyType)
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, Map<String,String> staticPartitions, int[][] targetColumns, boolean overwrite, Map<String,String> dynamicOptions)
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, Map<String,String> staticPartitions, @Nullable int[][] targetColumns, boolean overwrite, Map<String,String> dynamicOptions, SinkModifyOperation.ModifyType modifyType)
public ContextResolvedTable getContextResolvedTable()
public boolean isOverwrite()
public boolean isUpdate()
public boolean isDelete()
public QueryOperation getChild()
getChild in interface ModifyOperation@Nullable public int[][] getTargetColumns()
public <T> T accept(ModifyOperationVisitor<T> visitor)
accept in interface ModifyOperationpublic String asSummaryString()
OperationasSummaryString in interface OperationCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.