Class SinkModifyOperation
- java.lang.Object
-
- org.apache.flink.table.operations.SinkModifyOperation
-
- All Implemented Interfaces:
ModifyOperation
,Operation
- Direct Known Subclasses:
DeleteFromFilterOperation
,StagedSinkModifyOperation
@Internal public class SinkModifyOperation extends Object implements ModifyOperation
DML operation that tells to write to a sink.The sink is described by
getContextResolvedTable()
, and in general is used for every sink which implementation is defined withDynamicTableSink
.DataStream
andTableResult.collect()
sinks are handled by respectivelyExternalModifyOperation
andCollectModifyOperation
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContextResolvedTable
contextResolvedTable
-
Constructor Summary
Constructors Constructor Description SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child)
SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, int[][] targetColumns, 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, ModifyType modifyType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
contextResolvedTable
protected final ContextResolvedTable contextResolvedTable
-
-
Constructor Detail
-
SinkModifyOperation
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child)
-
SinkModifyOperation
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, int[][] targetColumns, ModifyType modifyType)
-
SinkModifyOperation
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, Map<String,String> staticPartitions, int[][] targetColumns, boolean overwrite, Map<String,String> dynamicOptions)
-
SinkModifyOperation
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, Map<String,String> staticPartitions, @Nullable int[][] targetColumns, boolean overwrite, Map<String,String> dynamicOptions, ModifyType modifyType)
-
-
Method Detail
-
getContextResolvedTable
public ContextResolvedTable getContextResolvedTable()
-
isOverwrite
public boolean isOverwrite()
-
isUpdate
public boolean isUpdate()
-
isDelete
public boolean isDelete()
-
getChild
public QueryOperation getChild()
- Specified by:
getChild
in interfaceModifyOperation
-
getTargetColumns
@Nullable public int[][] getTargetColumns()
return null when no column list specified.
-
accept
public <T> T accept(ModifyOperationVisitor<T> visitor)
- Specified by:
accept
in interfaceModifyOperation
-
asSummaryString
public String asSummaryString()
Description copied from interface:Operation
Returns a string that summarizes this operation for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryString
in interfaceOperation
- Returns:
- summary string of this operation for debugging purposes
-
-