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)
ActionsProvider
snapshotTable
in interface ActionsProvider
public MigrateTableSparkAction migrateTable(java.lang.String tableIdent)
ActionsProvider
migrateTable
in interface ActionsProvider
public RewriteDataFilesSparkAction rewriteDataFiles(Table table)
ActionsProvider
rewriteDataFiles
in interface ActionsProvider
public DeleteOrphanFilesSparkAction deleteOrphanFiles(Table table)
ActionsProvider
deleteOrphanFiles
in interface ActionsProvider
public RewriteManifestsSparkAction rewriteManifests(Table table)
ActionsProvider
rewriteManifests
in interface ActionsProvider
public ExpireSnapshotsSparkAction expireSnapshots(Table table)
ActionsProvider
expireSnapshots
in interface ActionsProvider
public DeleteReachableFilesSparkAction deleteReachableFiles(java.lang.String metadataLocation)
ActionsProvider
deleteReachableFiles
in interface ActionsProvider
public RewritePositionDeleteFilesSparkAction rewritePositionDeletes(Table table)
ActionsProvider
rewritePositionDeletes
in interface ActionsProvider