Package org.apache.iceberg
Class BaseTransaction
java.lang.Object
org.apache.iceberg.BaseTransaction
- All Implemented Interfaces:
Transaction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclass -
Method Summary
Modifier and TypeMethodDescriptionvoidApply 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
-
table
Description copied from interface:TransactionReturn theTablethat this transaction will update.- Specified by:
tablein interfaceTransaction- Returns:
- this transaction's table
-
tableName
-
startMetadata
-
currentMetadata
-
underlyingOps
-
updateSchema
Description copied from interface:TransactionCreate a newUpdateSchemato alter the columns of this table.- Specified by:
updateSchemain interfaceTransaction- Returns:
- a new
UpdateSchema
-
updateSpec
Description copied from interface:TransactionCreate a newUpdatePartitionSpecto alter the partition spec of this table.- Specified by:
updateSpecin interfaceTransaction- Returns:
- a new
UpdatePartitionSpec
-
updateProperties
Description copied from interface:TransactionCreate a newUpdatePropertiesto update table properties.- Specified by:
updatePropertiesin interfaceTransaction- Returns:
- a new
UpdateProperties
-
replaceSortOrder
Description copied from interface:TransactionCreate a newReplaceSortOrderto set a table sort order.- Specified by:
replaceSortOrderin interfaceTransaction- Returns:
- a new
ReplaceSortOrder
-
updateLocation
Description copied from interface:TransactionCreate a newUpdateLocationto update table location.- Specified by:
updateLocationin interfaceTransaction- Returns:
- a new
UpdateLocation
-
newAppend
Description copied from interface:TransactionCreate a newappend APIto add files to this table.- Specified by:
newAppendin interfaceTransaction- Returns:
- a new
AppendFiles
-
newFastAppend
Description 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 interfaceTransaction- Returns:
- a new
AppendFiles
-
newRewrite
Description copied from interface:TransactionCreate a newrewrite APIto replace files in this table.- Specified by:
newRewritein interfaceTransaction- Returns:
- a new
RewriteFiles
-
rewriteManifests
Description copied from interface:TransactionCreate a newrewrite manifests APIto replace manifests for this table.- Specified by:
rewriteManifestsin interfaceTransaction- Returns:
- a new
RewriteManifests
-
newOverwrite
Description copied from interface:TransactionCreate a newoverwrite APIto overwrite files by a filter expression.- Specified by:
newOverwritein interfaceTransaction- Returns:
- a new
OverwriteFiles
-
newRowDelta
Description copied from interface:TransactionCreate a newrow-level delta APIto remove or replace rows in existing data files.- Specified by:
newRowDeltain interfaceTransaction- Returns:
- a new
RowDelta
-
newReplacePartitions
Description 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 interfaceTransaction- Returns:
- a new
ReplacePartitions
-
newDelete
Description copied from interface:TransactionCreate a newdelete APIto delete files in this table.- Specified by:
newDeletein interfaceTransaction- Returns:
- a new
DeleteFiles
-
updateStatistics
Description copied from interface:TransactionCreate a newupdate table statistics APIto add or remove statistics files in this table.- Specified by:
updateStatisticsin interfaceTransaction- Returns:
- a new
UpdateStatistics
-
updatePartitionStatistics
Description copied from interface:TransactionCreate a newupdate partition statistics APIto add or remove partition statistics files in this table.- Specified by:
updatePartitionStatisticsin interfaceTransaction- Returns:
- a new
UpdatePartitionStatistics
-
expireSnapshots
Description copied from interface:TransactionCreate a newexpire APIto expire snapshots in this table.- Specified by:
expireSnapshotsin interfaceTransaction- Returns:
- a new
ExpireSnapshots
-
manageSnapshots
Description copied from interface:TransactionCreate a newmanage snapshot APIto manage snapshots in this table.- Specified by:
manageSnapshotsin interfaceTransaction- Returns:
- a new
ManageSnapshots
-
commitTransaction
public void commitTransaction()Description copied from interface:TransactionApply the pending changes from all actions and commit.- Specified by:
commitTransactionin interfaceTransaction
-