Class AddPartitionsOperation
- java.lang.Object
-
- org.apache.flink.table.operations.ddl.AlterTableOperation
-
- org.apache.flink.table.operations.ddl.AddPartitionsOperation
-
- All Implemented Interfaces:
AlterOperation
,ExecutableOperation
,Operation
@Internal public class AddPartitionsOperation extends AlterTableOperation
Operation to describe ALTER TABLE ADD PARTITION statement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.table.operations.ExecutableOperation
ExecutableOperation.Context
-
-
Field Summary
-
Fields inherited from class org.apache.flink.table.operations.ddl.AlterTableOperation
ignoreIfTableNotExists, tableIdentifier
-
-
Constructor Summary
Constructors Constructor Description AddPartitionsOperation(ObjectIdentifier tableIdentifier, boolean ignoreIfPartitionExists, List<CatalogPartitionSpec> partitionSpecs, List<CatalogPartition> catalogPartitions)
-
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.List<CatalogPartition>
getCatalogPartitions()
List<CatalogPartitionSpec>
getPartitionSpecs()
boolean
ignoreIfPartitionExists()
-
Methods inherited from class org.apache.flink.table.operations.ddl.AlterTableOperation
getTableIdentifier, ignoreIfTableNotExists
-
-
-
-
Constructor Detail
-
AddPartitionsOperation
public AddPartitionsOperation(ObjectIdentifier tableIdentifier, boolean ignoreIfPartitionExists, List<CatalogPartitionSpec> partitionSpecs, List<CatalogPartition> catalogPartitions)
-
-
Method Detail
-
getPartitionSpecs
public List<CatalogPartitionSpec> getPartitionSpecs()
-
getCatalogPartitions
public List<CatalogPartition> getCatalogPartitions()
-
ignoreIfPartitionExists
public boolean ignoreIfPartitionExists()
-
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.- 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.- Parameters:
ctx
- the context to execute the operation.- Returns:
- the content of the execution result.
- See Also:
TableEnvironmentInternal.executeInternal(Operation)
-
-