public class SparkActions
extends java.lang.Object
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 |
|---|---|
DeleteOrphanFiles |
deleteOrphanFiles(Table table)
Instantiates an action to delete orphan files.
|
DeleteReachableFiles |
deleteReachableFiles(java.lang.String metadataLocation)
Instantiates an action to delete all the files reachable from given metadata location.
|
ExpireSnapshots |
expireSnapshots(Table table)
Instantiates an action to expire snapshots.
|
static SparkActions |
get() |
static SparkActions |
get(org.apache.spark.sql.SparkSession spark) |
MigrateTable |
migrateTable(java.lang.String tableIdent)
Instantiates an action to migrate an existing table to Iceberg.
|
RewriteDataFiles |
rewriteDataFiles(Table table)
Instantiates an action to rewrite data files.
|
RewriteManifests |
rewriteManifests(Table table)
Instantiates an action to rewrite manifests.
|
SnapshotTable |
snapshotTable(java.lang.String tableIdent)
Instantiates an action to snapshot an existing table as a new Iceberg table.
|
protected org.apache.spark.sql.SparkSession |
spark() |
public static SparkActions get(org.apache.spark.sql.SparkSession spark)
public static SparkActions get()
public SnapshotTable snapshotTable(java.lang.String tableIdent)
ActionsProviderpublic MigrateTable migrateTable(java.lang.String tableIdent)
ActionsProviderpublic RewriteDataFiles rewriteDataFiles(Table table)
ActionsProviderprotected org.apache.spark.sql.SparkSession spark()
public DeleteOrphanFiles deleteOrphanFiles(Table table)
ActionsProviderdeleteOrphanFiles in interface ActionsProviderpublic RewriteManifests rewriteManifests(Table table)
ActionsProviderrewriteManifests in interface ActionsProviderpublic ExpireSnapshots expireSnapshots(Table table)
ActionsProviderexpireSnapshots in interface ActionsProviderpublic DeleteReachableFiles deleteReachableFiles(java.lang.String metadataLocation)
ActionsProviderdeleteReachableFiles in interface ActionsProvider