public class SparkActions extends java.lang.Object implements ActionsProvider
ActionsProvider for Spark.
This class is the primary API for interacting with actions in Spark that users should use to instantiate particular actions.
| Modifier and Type | Method and Description |
|---|---|
DeleteOrphanFilesSparkAction |
deleteOrphanFiles(Table table)
Instantiates an action to delete orphan files.
|
DeleteReachableFilesSparkAction |
deleteReachableFiles(java.lang.String metadataLocation)
Instantiates an action to delete all the files reachable from given metadata location.
|
ExpireSnapshotsSparkAction |
expireSnapshots(Table table)
Instantiates an action to expire snapshots.
|
static SparkActions |
get() |
static SparkActions |
get(org.apache.spark.sql.SparkSession spark) |
MigrateTableSparkAction |
migrateTable(java.lang.String tableIdent)
Instantiates an action to migrate an existing table to Iceberg.
|
RewriteDataFilesSparkAction |
rewriteDataFiles(Table table)
Instantiates an action to rewrite data files.
|
RewriteManifestsSparkAction |
rewriteManifests(Table table)
Instantiates an action to rewrite manifests.
|
RewritePositionDeleteFilesSparkAction |
rewritePositionDeletes(Table table)
Instantiates an action to rewrite position delete files
|
SnapshotTableSparkAction |
snapshotTable(java.lang.String tableIdent)
Instantiates an action to snapshot an existing table as a new Iceberg table.
|
public static SparkActions get(org.apache.spark.sql.SparkSession spark)
public static SparkActions get()
public SnapshotTableSparkAction snapshotTable(java.lang.String tableIdent)
ActionsProvidersnapshotTable in interface ActionsProviderpublic MigrateTableSparkAction migrateTable(java.lang.String tableIdent)
ActionsProvidermigrateTable in interface ActionsProviderpublic RewriteDataFilesSparkAction rewriteDataFiles(Table table)
ActionsProviderrewriteDataFiles in interface ActionsProviderpublic DeleteOrphanFilesSparkAction deleteOrphanFiles(Table table)
ActionsProviderdeleteOrphanFiles in interface ActionsProviderpublic RewriteManifestsSparkAction rewriteManifests(Table table)
ActionsProviderrewriteManifests in interface ActionsProviderpublic ExpireSnapshotsSparkAction expireSnapshots(Table table)
ActionsProviderexpireSnapshots in interface ActionsProviderpublic DeleteReachableFilesSparkAction deleteReachableFiles(java.lang.String metadataLocation)
ActionsProviderdeleteReachableFiles in interface ActionsProviderpublic RewritePositionDeleteFilesSparkAction rewritePositionDeletes(Table table)
ActionsProviderrewritePositionDeletes in interface ActionsProvider