Package org.apache.iceberg.spark.actions
Class SparkActions
- java.lang.Object
-
- org.apache.iceberg.spark.actions.SparkActions
-
- All Implemented Interfaces:
ActionsProvider
public class SparkActions extends java.lang.Object implements ActionsProvider
An implementation ofActionsProviderfor Spark.This class is the primary API for interacting with actions in Spark that users should use to instantiate particular actions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteOrphanFilesSparkActiondeleteOrphanFiles(Table table)Instantiates an action to delete orphan files.DeleteReachableFilesSparkActiondeleteReachableFiles(java.lang.String metadataLocation)Instantiates an action to delete all the files reachable from given metadata location.ExpireSnapshotsSparkActionexpireSnapshots(Table table)Instantiates an action to expire snapshots.static SparkActionsget()static SparkActionsget(org.apache.spark.sql.SparkSession spark)MigrateTableSparkActionmigrateTable(java.lang.String tableIdent)Instantiates an action to migrate an existing table to Iceberg.RewriteDataFilesSparkActionrewriteDataFiles(Table table)Instantiates an action to rewrite data files.RewriteManifestsSparkActionrewriteManifests(Table table)Instantiates an action to rewrite manifests.SnapshotTableSparkActionsnapshotTable(java.lang.String tableIdent)Instantiates an action to snapshot an existing table as a new Iceberg table.
-
-
-
Method Detail
-
get
public static SparkActions get(org.apache.spark.sql.SparkSession spark)
-
get
public static SparkActions get()
-
snapshotTable
public SnapshotTableSparkAction snapshotTable(java.lang.String tableIdent)
Description copied from interface:ActionsProviderInstantiates an action to snapshot an existing table as a new Iceberg table.- Specified by:
snapshotTablein interfaceActionsProvider
-
migrateTable
public MigrateTableSparkAction migrateTable(java.lang.String tableIdent)
Description copied from interface:ActionsProviderInstantiates an action to migrate an existing table to Iceberg.- Specified by:
migrateTablein interfaceActionsProvider
-
rewriteDataFiles
public RewriteDataFilesSparkAction rewriteDataFiles(Table table)
Description copied from interface:ActionsProviderInstantiates an action to rewrite data files.- Specified by:
rewriteDataFilesin interfaceActionsProvider
-
deleteOrphanFiles
public DeleteOrphanFilesSparkAction deleteOrphanFiles(Table table)
Description copied from interface:ActionsProviderInstantiates an action to delete orphan files.- Specified by:
deleteOrphanFilesin interfaceActionsProvider
-
rewriteManifests
public RewriteManifestsSparkAction rewriteManifests(Table table)
Description copied from interface:ActionsProviderInstantiates an action to rewrite manifests.- Specified by:
rewriteManifestsin interfaceActionsProvider
-
expireSnapshots
public ExpireSnapshotsSparkAction expireSnapshots(Table table)
Description copied from interface:ActionsProviderInstantiates an action to expire snapshots.- Specified by:
expireSnapshotsin interfaceActionsProvider
-
deleteReachableFiles
public DeleteReachableFilesSparkAction deleteReachableFiles(java.lang.String metadataLocation)
Description copied from interface:ActionsProviderInstantiates an action to delete all the files reachable from given metadata location.- Specified by:
deleteReachableFilesin interfaceActionsProvider
-
-