Class ReplaceTableAsOperation
- java.lang.Object
-
- org.apache.flink.table.operations.ReplaceTableAsOperation
-
- All Implemented Interfaces:
ModifyOperation
,Operation
@Internal public class ReplaceTableAsOperation extends Object implements ModifyOperation
Operation to describe a [CREATE OR] REPLACE TABLE AS statement.
-
-
Constructor Summary
Constructors Constructor Description ReplaceTableAsOperation(CreateTableOperation createTableOperation, QueryOperation sinkModifyQuery, boolean isCreateOrReplace)
-
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()
CreateTableOperation
getCreateTableOperation()
boolean
isCreateOrReplace()
SinkModifyOperation
toSinkModifyOperation(CatalogManager catalogManager)
StagedSinkModifyOperation
toStagedSinkModifyOperation(ObjectIdentifier tableIdentifier, ResolvedCatalogTable catalogTable, Catalog catalog, DynamicTableSink dynamicTableSink)
-
-
-
Constructor Detail
-
ReplaceTableAsOperation
public ReplaceTableAsOperation(CreateTableOperation createTableOperation, QueryOperation sinkModifyQuery, boolean isCreateOrReplace)
-
-
Method Detail
-
getChild
public QueryOperation getChild()
- Specified by:
getChild
in interfaceModifyOperation
-
accept
public <T> T accept(ModifyOperationVisitor<T> visitor)
- Specified by:
accept
in interfaceModifyOperation
-
getCreateTableOperation
public CreateTableOperation getCreateTableOperation()
-
isCreateOrReplace
public boolean isCreateOrReplace()
-
toSinkModifyOperation
public SinkModifyOperation toSinkModifyOperation(CatalogManager catalogManager)
-
toStagedSinkModifyOperation
public StagedSinkModifyOperation toStagedSinkModifyOperation(ObjectIdentifier tableIdentifier, ResolvedCatalogTable catalogTable, Catalog catalog, DynamicTableSink dynamicTableSink)
-
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
-
-