public class Actions
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Actions(org.apache.spark.sql.SparkSession spark,
Table table) |
Modifier and Type | Method and Description |
---|---|
ExpireSnapshotsAction |
expireSnapshots() |
static Actions |
forTable(org.apache.spark.sql.SparkSession spark,
Table table) |
static Actions |
forTable(Table table) |
static CreateAction |
migrate(org.apache.spark.sql.SparkSession spark,
java.lang.String tableName)
Converts the provided table into an Iceberg table in place.
|
static CreateAction |
migrate(java.lang.String tableName)
Converts the provided table into an Iceberg table in place.
|
RemoveOrphanFilesAction |
removeOrphanFiles() |
RewriteDataFilesAction |
rewriteDataFiles() |
RewriteManifestsAction |
rewriteManifests() |
static SnapshotAction |
snapshot(org.apache.spark.sql.SparkSession spark,
java.lang.String sourceTable,
java.lang.String destTable)
Creates an independent Iceberg table based on a given table.
|
static SnapshotAction |
snapshot(java.lang.String sourceTable,
java.lang.String destTable)
Creates an independent Iceberg table based on a given table.
|
protected org.apache.spark.sql.SparkSession |
spark() |
protected Table |
table() |
protected Actions(org.apache.spark.sql.SparkSession spark, Table table)
public RemoveOrphanFilesAction removeOrphanFiles()
public RewriteManifestsAction rewriteManifests()
public RewriteDataFilesAction rewriteDataFiles()
public ExpireSnapshotsAction expireSnapshots()
public static CreateAction migrate(java.lang.String tableName)
tableName
- Table to be convertedCreateAction
to perform migrationpublic static CreateAction migrate(org.apache.spark.sql.SparkSession spark, java.lang.String tableName)
tableName
- Table to be convertedspark
- Spark session to use for looking up tableCreateAction
to perform migrationpublic static SnapshotAction snapshot(org.apache.spark.sql.SparkSession spark, java.lang.String sourceTable, java.lang.String destTable)
sourceTable
- Original table which is the basis for the new Iceberg tabledestTable
- New Iceberg table being createdSnapshotAction
to perform snapshotpublic static SnapshotAction snapshot(java.lang.String sourceTable, java.lang.String destTable)
sourceTable
- Original table which is the basis for the new Iceberg tabledestTable
- New Iceberg table being createdSnapshotAction
to perform snapshotprotected org.apache.spark.sql.SparkSession spark()
protected Table table()