Package org.apache.iceberg.actions
Class Actions
- java.lang.Object
-
- org.apache.iceberg.actions.Actions
-
- Direct Known Subclasses:
SparkActions
@Deprecated public class Actions extends java.lang.Object
Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProvider
instead.An API for interacting with actions in Spark.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExpireSnapshotsAction
expireSnapshots()
Deprecated.since 0.12.0, will be removed in 0.13.0; useExpireSnapshots
instead.static Actions
forTable(Table table)
Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProvider
instead.static Actions
forTable(org.apache.spark.sql.SparkSession spark, Table table)
Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProvider
instead.static CreateAction
migrate(java.lang.String tableName)
Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTable
instead.static CreateAction
migrate(org.apache.spark.sql.SparkSession spark, java.lang.String tableName)
Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTable
instead.RemoveOrphanFilesAction
removeOrphanFiles()
Deprecated.since 0.12.0, will be removed in 0.13.0; useDeleteOrphanFiles
instead.RewriteDataFilesAction
rewriteDataFiles()
Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteDataFiles
instead.RewriteManifestsAction
rewriteManifests()
Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteManifests
instead.static SnapshotAction
snapshot(java.lang.String sourceTable, java.lang.String destTable)
Deprecated.since 0.12.0, will be removed in 0.13.0; useSnapshotTable
instead.static SnapshotAction
snapshot(org.apache.spark.sql.SparkSession spark, java.lang.String sourceTable, java.lang.String destTable)
Deprecated.since 0.12.0, will be removed in 0.13.0; useSnapshotTable
instead.protected org.apache.spark.sql.SparkSession
spark()
Deprecated.protected Table
table()
Deprecated.
-
-
-
Constructor Detail
-
Actions
protected Actions(org.apache.spark.sql.SparkSession spark, Table table)
Deprecated.
-
-
Method Detail
-
forTable
@Deprecated public static Actions forTable(org.apache.spark.sql.SparkSession spark, Table table)
Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProvider
instead.
-
forTable
@Deprecated public static Actions forTable(Table table)
Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProvider
instead.
-
removeOrphanFiles
@Deprecated public RemoveOrphanFilesAction removeOrphanFiles()
Deprecated.since 0.12.0, will be removed in 0.13.0; useDeleteOrphanFiles
instead.
-
rewriteManifests
@Deprecated public RewriteManifestsAction rewriteManifests()
Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteManifests
instead.
-
rewriteDataFiles
@Deprecated public RewriteDataFilesAction rewriteDataFiles()
Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteDataFiles
instead.
-
expireSnapshots
@Deprecated public ExpireSnapshotsAction expireSnapshots()
Deprecated.since 0.12.0, will be removed in 0.13.0; useExpireSnapshots
instead.
-
migrate
@Deprecated public static CreateAction migrate(java.lang.String tableName)
Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTable
instead.Converts the provided table into an Iceberg table in place. The table will no longer be accessible by it's previous implementation- Parameters:
tableName
- Table to be converted- Returns:
CreateAction
to perform migration
-
migrate
@Deprecated public static CreateAction migrate(org.apache.spark.sql.SparkSession spark, java.lang.String tableName)
Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTable
instead.Converts the provided table into an Iceberg table in place. The table will no longer be accessible by it's previous implementation- Parameters:
tableName
- Table to be convertedspark
- Spark session to use for looking up table- Returns:
CreateAction
to perform migration
-
snapshot
@Deprecated public static SnapshotAction snapshot(org.apache.spark.sql.SparkSession spark, java.lang.String sourceTable, java.lang.String destTable)
Deprecated.since 0.12.0, will be removed in 0.13.0; useSnapshotTable
instead.Creates an independent Iceberg table based on a given table. The new Iceberg table can be altered, appended or deleted without causing any change to the original. New data and metadata will be created in the default location for tables of this name in the destination catalog.- Parameters:
sourceTable
- Original table which is the basis for the new Iceberg tabledestTable
- New Iceberg table being created- Returns:
SnapshotAction
to perform snapshot
-
snapshot
@Deprecated public static SnapshotAction snapshot(java.lang.String sourceTable, java.lang.String destTable)
Deprecated.since 0.12.0, will be removed in 0.13.0; useSnapshotTable
instead.Creates an independent Iceberg table based on a given table. The new Iceberg table can be altered, appended or deleted without causing any change to the original. New data and metadata will be created in the default location for tables of this name in the destination catalog.- Parameters:
sourceTable
- Original table which is the basis for the new Iceberg tabledestTable
- New Iceberg table being created- Returns:
SnapshotAction
to perform snapshot
-
spark
protected org.apache.spark.sql.SparkSession spark()
Deprecated.
-
table
protected Table table()
Deprecated.
-
-