@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,
Map<String,String> staticPartitions,
boolean overwrite,
Map<String,String> dynamicOptions) |
SinkModifyOperation(ContextResolvedTable contextResolvedTable,
QueryOperation child,
Map<String,String> staticPartitions,
boolean overwrite,
Map<String,String> dynamicOptions,
SinkModifyOperation.ModifyType modifyType) |
SinkModifyOperation(ContextResolvedTable contextResolvedTable,
QueryOperation child,
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() |
boolean |
isDelete() |
boolean |
isOverwrite() |
boolean |
isUpdate() |
protected final ContextResolvedTable contextResolvedTable
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child)
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, SinkModifyOperation.ModifyType modifyType)
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, Map<String,String> staticPartitions, boolean overwrite, Map<String,String> dynamicOptions)
public SinkModifyOperation(ContextResolvedTable contextResolvedTable, QueryOperation child, Map<String,String> staticPartitions, 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
public <T> T accept(ModifyOperationVisitor<T> visitor)
accept
in interface ModifyOperation
public String asSummaryString()
Operation
asSummaryString
in interface Operation
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.