Class AlterModelRenameOperation
- java.lang.Object
-
- org.apache.flink.table.operations.ddl.AlterModelRenameOperation
-
- All Implemented Interfaces:
AlterOperation
,ExecutableOperation
,Operation
@Internal public class AlterModelRenameOperation extends Object implements AlterOperation
Operation to describe a ALTER MODEL .. RENAME TO .. statement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.operations.ExecutableOperation
ExecutableOperation.Context
-
-
Constructor Summary
Constructors Constructor Description AlterModelRenameOperation(org.apache.flink.table.catalog.ObjectIdentifier modelIdentifier, org.apache.flink.table.catalog.ObjectIdentifier newModelIdentifier, boolean ignoreIfNotExists)
Creates a AlterModelRenameOperation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asSummaryString()
Returns a string that summarizes this operation for printing to a console.TableResultInternal
execute(ExecutableOperation.Context ctx)
Executes the given operation and return the execution result.org.apache.flink.table.catalog.ObjectIdentifier
getModelIdentifier()
org.apache.flink.table.catalog.ObjectIdentifier
getNewModelIdentifier()
boolean
ignoreIfNotExists()
-
-
-
Constructor Detail
-
AlterModelRenameOperation
public AlterModelRenameOperation(org.apache.flink.table.catalog.ObjectIdentifier modelIdentifier, org.apache.flink.table.catalog.ObjectIdentifier newModelIdentifier, boolean ignoreIfNotExists)
Creates a AlterModelRenameOperation.- Parameters:
modelIdentifier
- The identifier of the model to rename.newModelIdentifier
- The new identifier of the model.ignoreIfNotExists
- A flag that indicates if the operation should throw an exception if model does not exist.
-
-
Method Detail
-
getModelIdentifier
public org.apache.flink.table.catalog.ObjectIdentifier getModelIdentifier()
-
getNewModelIdentifier
public org.apache.flink.table.catalog.ObjectIdentifier getNewModelIdentifier()
-
ignoreIfNotExists
public boolean ignoreIfNotExists()
-
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
-
execute
public TableResultInternal execute(ExecutableOperation.Context ctx)
Description copied from interface:ExecutableOperation
Executes the given operation and return the execution result.- Specified by:
execute
in interfaceExecutableOperation
- Parameters:
ctx
- the context to execute the operation.- Returns:
- the content of the execution result.
- See Also:
TableEnvironmentInternal.executeInternal(Operation)
-
-