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)
ActionsProvider
public MigrateTable migrateTable(java.lang.String tableIdent)
ActionsProvider
public RewriteDataFiles rewriteDataFiles(Table table)
ActionsProvider
protected org.apache.spark.sql.SparkSession spark()
public DeleteOrphanFiles deleteOrphanFiles(Table table)
ActionsProvider
deleteOrphanFiles
in interface ActionsProvider
public RewriteManifests rewriteManifests(Table table)
ActionsProvider
rewriteManifests
in interface ActionsProvider
public ExpireSnapshots expireSnapshots(Table table)
ActionsProvider
expireSnapshots
in interface ActionsProvider
public DeleteReachableFiles deleteReachableFiles(java.lang.String metadataLocation)
ActionsProvider
deleteReachableFiles
in interface ActionsProvider