public class SparkActions
extends java.lang.Object
implements org.apache.iceberg.actions.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(org.apache.iceberg.Table table) |
DeleteReachableFilesSparkAction |
deleteReachableFiles(java.lang.String metadataLocation) |
ExpireSnapshotsSparkAction |
expireSnapshots(org.apache.iceberg.Table table) |
static SparkActions |
get() |
static SparkActions |
get(org.apache.spark.sql.SparkSession spark) |
MigrateTableSparkAction |
migrateTable(java.lang.String tableIdent) |
RewriteDataFilesSparkAction |
rewriteDataFiles(org.apache.iceberg.Table table) |
RewriteManifestsSparkAction |
rewriteManifests(org.apache.iceberg.Table table) |
SnapshotTableSparkAction |
snapshotTable(java.lang.String tableIdent) |
public static SparkActions get(org.apache.spark.sql.SparkSession spark)
public static SparkActions get()
public SnapshotTableSparkAction snapshotTable(java.lang.String tableIdent)
snapshotTable in interface org.apache.iceberg.actions.ActionsProviderpublic MigrateTableSparkAction migrateTable(java.lang.String tableIdent)
migrateTable in interface org.apache.iceberg.actions.ActionsProviderpublic RewriteDataFilesSparkAction rewriteDataFiles(org.apache.iceberg.Table table)
rewriteDataFiles in interface org.apache.iceberg.actions.ActionsProviderpublic DeleteOrphanFilesSparkAction deleteOrphanFiles(org.apache.iceberg.Table table)
deleteOrphanFiles in interface org.apache.iceberg.actions.ActionsProviderpublic RewriteManifestsSparkAction rewriteManifests(org.apache.iceberg.Table table)
rewriteManifests in interface org.apache.iceberg.actions.ActionsProviderpublic ExpireSnapshotsSparkAction expireSnapshots(org.apache.iceberg.Table table)
expireSnapshots in interface org.apache.iceberg.actions.ActionsProviderpublic DeleteReachableFilesSparkAction deleteReachableFiles(java.lang.String metadataLocation)
deleteReachableFiles in interface org.apache.iceberg.actions.ActionsProvider