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.ObjectDeprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProviderinstead.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 ExpireSnapshotsActionexpireSnapshots()Deprecated.since 0.12.0, will be removed in 0.13.0; useExpireSnapshotsinstead.static ActionsforTable(Table table)Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProviderinstead.static ActionsforTable(org.apache.spark.sql.SparkSession spark, Table table)Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProviderinstead.static CreateActionmigrate(java.lang.String tableName)Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTableinstead.static CreateActionmigrate(org.apache.spark.sql.SparkSession spark, java.lang.String tableName)Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTableinstead.RemoveOrphanFilesActionremoveOrphanFiles()Deprecated.since 0.12.0, will be removed in 0.13.0; useDeleteOrphanFilesinstead.RewriteDataFilesActionrewriteDataFiles()Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteDataFilesinstead.RewriteManifestsActionrewriteManifests()Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteManifestsinstead.static SnapshotActionsnapshot(java.lang.String sourceTable, java.lang.String destTable)Deprecated.since 0.12.0, will be removed in 0.13.0; useSnapshotTableinstead.static SnapshotActionsnapshot(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; useSnapshotTableinstead.protected org.apache.spark.sql.SparkSessionspark()Deprecated.protected Tabletable()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 ofActionsProviderinstead.
-
forTable
@Deprecated public static Actions forTable(Table table)
Deprecated.since 0.12.0, will be removed in 0.13.0; use an implementation ofActionsProviderinstead.
-
removeOrphanFiles
@Deprecated public RemoveOrphanFilesAction removeOrphanFiles()
Deprecated.since 0.12.0, will be removed in 0.13.0; useDeleteOrphanFilesinstead.
-
rewriteManifests
@Deprecated public RewriteManifestsAction rewriteManifests()
Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteManifestsinstead.
-
rewriteDataFiles
@Deprecated public RewriteDataFilesAction rewriteDataFiles()
Deprecated.since 0.12.0, will be removed in 0.13.0; useRewriteDataFilesinstead.
-
expireSnapshots
@Deprecated public ExpireSnapshotsAction expireSnapshots()
Deprecated.since 0.12.0, will be removed in 0.13.0; useExpireSnapshotsinstead.
-
migrate
@Deprecated public static CreateAction migrate(java.lang.String tableName)
Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTableinstead.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:
CreateActionto 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; useMigrateTableinstead.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:
CreateActionto 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; useSnapshotTableinstead.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:
SnapshotActionto 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; useSnapshotTableinstead.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:
SnapshotActionto perform snapshot
-
spark
protected org.apache.spark.sql.SparkSession spark()
Deprecated.
-
table
protected Table table()
Deprecated.
-
-