@Internal public class AddPartitionsOperation extends AlterTableOperation
ExecutableOperation.Context
ignoreIfTableNotExists, tableIdentifier
Constructor and Description |
---|
AddPartitionsOperation(ObjectIdentifier tableIdentifier,
boolean ignoreIfPartitionExists,
List<CatalogPartitionSpec> partitionSpecs,
List<CatalogPartition> catalogPartitions) |
Modifier and Type | Method and 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() |
getTableIdentifier, ignoreIfTableNotExists
public AddPartitionsOperation(ObjectIdentifier tableIdentifier, boolean ignoreIfPartitionExists, List<CatalogPartitionSpec> partitionSpecs, List<CatalogPartition> catalogPartitions)
public List<CatalogPartitionSpec> getPartitionSpecs()
public List<CatalogPartition> getCatalogPartitions()
public boolean ignoreIfPartitionExists()
public String asSummaryString()
Operation
public TableResultInternal execute(ExecutableOperation.Context ctx)
ExecutableOperation
ctx
- the context to execute the operation.TableEnvironmentInternal.executeInternal(Operation)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.