Package org.apache.iceberg.spark.actions
Class SparkActions
java.lang.Object
org.apache.iceberg.spark.actions.SparkActions
- All Implemented Interfaces:
ActionsProvider
An implementation of
ActionsProvider for Spark.
This class is the primary API for interacting with actions in Spark that users should use to instantiate particular actions.
-
Method Summary
Modifier and TypeMethodDescriptioncomputePartitionStats(Table table) Instantiates an action to compute partition stats.computeTableStats(Table table) Instantiates an action to compute table stats.deleteOrphanFiles(Table table) Instantiates an action to delete orphan files.deleteReachableFiles(String metadataLocation) Instantiates an action to delete all the files reachable from given metadata location.expireSnapshots(Table table) Instantiates an action to expire snapshots.static SparkActionsget()static SparkActionsget(org.apache.spark.sql.SparkSession spark) migrateTable(String tableIdent) Instantiates an action to migrate an existing table to Iceberg.removeDanglingDeleteFiles(Table table) Instantiates an action to remove dangling delete files from current snapshot.rewriteDataFiles(Table table) Instantiates an action to rewrite data files.rewriteManifests(Table table) Instantiates an action to rewrite manifests.rewritePositionDeletes(Table table) Instantiates an action to rewrite position delete filesrewriteTablePath(Table table) Instantiates an action to rewrite all absolute paths in table metadata.snapshotTable(String tableIdent) Instantiates an action to snapshot an existing table as a new Iceberg table.
-
Method Details
-
get
-
get
-
snapshotTable
Description copied from interface:ActionsProviderInstantiates an action to snapshot an existing table as a new Iceberg table.- Specified by:
snapshotTablein interfaceActionsProvider
-
migrateTable
Description copied from interface:ActionsProviderInstantiates an action to migrate an existing table to Iceberg.- Specified by:
migrateTablein interfaceActionsProvider
-
rewriteDataFiles
Description copied from interface:ActionsProviderInstantiates an action to rewrite data files.- Specified by:
rewriteDataFilesin interfaceActionsProvider
-
deleteOrphanFiles
Description copied from interface:ActionsProviderInstantiates an action to delete orphan files.- Specified by:
deleteOrphanFilesin interfaceActionsProvider
-
rewriteManifests
Description copied from interface:ActionsProviderInstantiates an action to rewrite manifests.- Specified by:
rewriteManifestsin interfaceActionsProvider
-
expireSnapshots
Description copied from interface:ActionsProviderInstantiates an action to expire snapshots.- Specified by:
expireSnapshotsin interfaceActionsProvider
-
deleteReachableFiles
Description copied from interface:ActionsProviderInstantiates an action to delete all the files reachable from given metadata location.- Specified by:
deleteReachableFilesin interfaceActionsProvider
-
rewritePositionDeletes
Description copied from interface:ActionsProviderInstantiates an action to rewrite position delete files- Specified by:
rewritePositionDeletesin interfaceActionsProvider
-
computeTableStats
Description copied from interface:ActionsProviderInstantiates an action to compute table stats.- Specified by:
computeTableStatsin interfaceActionsProvider
-
computePartitionStats
Description copied from interface:ActionsProviderInstantiates an action to compute partition stats.- Specified by:
computePartitionStatsin interfaceActionsProvider
-
removeDanglingDeleteFiles
Description copied from interface:ActionsProviderInstantiates an action to remove dangling delete files from current snapshot.- Specified by:
removeDanglingDeleteFilesin interfaceActionsProvider
-
rewriteTablePath
Description copied from interface:ActionsProviderInstantiates an action to rewrite all absolute paths in table metadata.- Specified by:
rewriteTablePathin interfaceActionsProvider
-