Package org.apache.iceberg
Class BaseTransaction
java.lang.Object
org.apache.iceberg.BaseTransaction
- All Implemented Interfaces:
- Transaction
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassclass
- 
Method SummaryModifier and TypeMethodDescriptionprotected final <T extends PendingUpdate>
 TappendUpdate(T update) voidApply the pending changes from all actions and commit.Create a newexpire APIto expire snapshots in this table.Create a newmanage snapshot APIto manage snapshots in this table.Create a newappend APIto add files to this table.Create a newdelete APIto delete files in this table.Create a newappend APIto add files to this table.Create a newoverwrite APIto overwrite files by a filter expression.Not recommended: Create a newreplace partitions APIto dynamically overwrite partitions in the table with new data.Create a newrewrite APIto replace files in this table.Create a newrow-level delta APIto remove or replace rows in existing data files.Create a newReplaceSortOrderto set a table sort order.Create a newrewrite manifests APIto replace manifests for this table.table()Return theTablethat this transaction will update.Create a newUpdateLocationto update table location.Create a newupdate partition statistics APIto add or remove partition statistics files in this table.Create a newUpdatePropertiesto update table properties.Create a newUpdateSchemato alter the columns of this table.Create a newUpdatePartitionSpecto alter the partition spec of this table.Create a newupdate table statistics APIto add or remove statistics files in this table.
- 
Method Details- 
tableDescription copied from interface:TransactionReturn theTablethat this transaction will update.- Specified by:
- tablein interface- Transaction
- Returns:
- this transaction's table
 
- 
tableName
- 
startMetadata
- 
currentMetadata
- 
underlyingOps
- 
appendUpdate
- 
updateSchemaDescription copied from interface:TransactionCreate a newUpdateSchemato alter the columns of this table.- Specified by:
- updateSchemain interface- Transaction
- Returns:
- a new UpdateSchema
 
- 
updateSpecDescription copied from interface:TransactionCreate a newUpdatePartitionSpecto alter the partition spec of this table.- Specified by:
- updateSpecin interface- Transaction
- Returns:
- a new UpdatePartitionSpec
 
- 
updatePropertiesDescription copied from interface:TransactionCreate a newUpdatePropertiesto update table properties.- Specified by:
- updatePropertiesin interface- Transaction
- Returns:
- a new UpdateProperties
 
- 
replaceSortOrderDescription copied from interface:TransactionCreate a newReplaceSortOrderto set a table sort order.- Specified by:
- replaceSortOrderin interface- Transaction
- Returns:
- a new ReplaceSortOrder
 
- 
updateLocationDescription copied from interface:TransactionCreate a newUpdateLocationto update table location.- Specified by:
- updateLocationin interface- Transaction
- Returns:
- a new UpdateLocation
 
- 
newAppendDescription copied from interface:TransactionCreate a newappend APIto add files to this table.- Specified by:
- newAppendin interface- Transaction
- Returns:
- a new AppendFiles
 
- 
newFastAppendDescription copied from interface:TransactionCreate a newappend APIto add files to this table.Using this method signals to the underlying implementation that the append should not perform extra work in order to commit quickly. Fast appends are not recommended for normal writes because the fast commit may cause split planning to slow down over time. Implementations may not support fast appends, in which case this will return the same appender as Transaction.newAppend().- Specified by:
- newFastAppendin interface- Transaction
- Returns:
- a new AppendFiles
 
- 
newRewriteDescription copied from interface:TransactionCreate a newrewrite APIto replace files in this table.- Specified by:
- newRewritein interface- Transaction
- Returns:
- a new RewriteFiles
 
- 
rewriteManifestsDescription copied from interface:TransactionCreate a newrewrite manifests APIto replace manifests for this table.- Specified by:
- rewriteManifestsin interface- Transaction
- Returns:
- a new RewriteManifests
 
- 
newOverwriteDescription copied from interface:TransactionCreate a newoverwrite APIto overwrite files by a filter expression.- Specified by:
- newOverwritein interface- Transaction
- Returns:
- a new OverwriteFiles
 
- 
newRowDeltaDescription copied from interface:TransactionCreate a newrow-level delta APIto remove or replace rows in existing data files.- Specified by:
- newRowDeltain interface- Transaction
- Returns:
- a new RowDelta
 
- 
newReplacePartitionsDescription copied from interface:TransactionNot recommended: Create a newreplace partitions APIto dynamically overwrite partitions in the table with new data.This is provided to implement SQL compatible with Hive table operations but is not recommended. Instead, use the overwrite APIto explicitly overwrite data.- Specified by:
- newReplacePartitionsin interface- Transaction
- Returns:
- a new ReplacePartitions
 
- 
newDeleteDescription copied from interface:TransactionCreate a newdelete APIto delete files in this table.- Specified by:
- newDeletein interface- Transaction
- Returns:
- a new DeleteFiles
 
- 
updateStatisticsDescription copied from interface:TransactionCreate a newupdate table statistics APIto add or remove statistics files in this table.- Specified by:
- updateStatisticsin interface- Transaction
- Returns:
- a new UpdateStatistics
 
- 
updatePartitionStatisticsDescription copied from interface:TransactionCreate a newupdate partition statistics APIto add or remove partition statistics files in this table.- Specified by:
- updatePartitionStatisticsin interface- Transaction
- Returns:
- a new UpdatePartitionStatistics
 
- 
expireSnapshotsDescription copied from interface:TransactionCreate a newexpire APIto expire snapshots in this table.- Specified by:
- expireSnapshotsin interface- Transaction
- Returns:
- a new ExpireSnapshots
 
- 
manageSnapshotsDescription copied from interface:TransactionCreate a newmanage snapshot APIto manage snapshots in this table.- Specified by:
- manageSnapshotsin interface- Transaction
- Returns:
- a new ManageSnapshots
 
- 
commitTransactionpublic void commitTransaction()Description copied from interface:TransactionApply the pending changes from all actions and commit.- Specified by:
- commitTransactionin interface- Transaction
 
 
-