Class AlterModelChangeOperation
- java.lang.Object
-
- org.apache.flink.table.operations.ddl.AlterModelChangeOperation
-
- All Implemented Interfaces:
AlterOperation,ExecutableOperation,Operation
@Internal public class AlterModelChangeOperation extends Object implements AlterOperation
Operation to describe a ALTER MODEL .. SET .. statement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.operations.ExecutableOperation
ExecutableOperation.Context
-
-
Constructor Summary
Constructors Constructor Description AlterModelChangeOperation(org.apache.flink.table.catalog.ObjectIdentifier modelIdentifier, List<org.apache.flink.table.catalog.ModelChange> modelChanges, org.apache.flink.table.catalog.CatalogModel catalogModel, boolean ignoreIfNotExists)Creates an ALTER MODEL CHANGE statement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasSummaryString()Returns a string that summarizes this operation for printing to a console.TableResultInternalexecute(ExecutableOperation.Context ctx)Executes the given operation and return the execution result.org.apache.flink.table.catalog.CatalogModelgetCatalogModel()List<org.apache.flink.table.catalog.ModelChange>getModelChanges()org.apache.flink.table.catalog.ObjectIdentifiergetModelIdentifier()booleanignoreIfNotExists()
-
-
-
Constructor Detail
-
AlterModelChangeOperation
public AlterModelChangeOperation(org.apache.flink.table.catalog.ObjectIdentifier modelIdentifier, List<org.apache.flink.table.catalog.ModelChange> modelChanges, @Nullable org.apache.flink.table.catalog.CatalogModel catalogModel, boolean ignoreIfNotExists)Creates an ALTER MODEL CHANGE statement.- Parameters:
modelIdentifier- The identifier of the model to be altered.modelChanges- The list of changes to be applied to the model.catalogModel- The resolved model after applying the changes. If null, existing model doesn't exist and ignoreIfNotExists is true.ignoreIfNotExists- Flag to specify behavior when the model doesn't exist.
-
-
Method Detail
-
getModelIdentifier
public org.apache.flink.table.catalog.ObjectIdentifier getModelIdentifier()
-
getModelChanges
public List<org.apache.flink.table.catalog.ModelChange> getModelChanges()
-
getCatalogModel
@Nullable public org.apache.flink.table.catalog.CatalogModel getCatalogModel()
-
ignoreIfNotExists
public boolean ignoreIfNotExists()
-
asSummaryString
public String asSummaryString()
Description copied from interface:OperationReturns a string that summarizes this operation for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryStringin interfaceOperation- Returns:
- summary string of this operation for debugging purposes
-
execute
public TableResultInternal execute(ExecutableOperation.Context ctx)
Description copied from interface:ExecutableOperationExecutes the given operation and return the execution result.- Specified by:
executein interfaceExecutableOperation- Parameters:
ctx- the context to execute the operation.- Returns:
- the content of the execution result.
- See Also:
TableEnvironmentInternal.executeInternal(Operation)
-
-