Package org.apache.iceberg.actions
Class Spark3SnapshotAction
- java.lang.Object
-
- org.apache.iceberg.actions.Spark3SnapshotAction
-
- All Implemented Interfaces:
Action<CreateAction,java.lang.Long>,CreateAction,SnapshotAction
@Deprecated public class Spark3SnapshotAction extends java.lang.Object implements SnapshotAction
Deprecated.since 0.12.0, will be removed in 0.13.0; useSnapshotTableinstead.Creates a new Iceberg table based on a source Spark table. The new Iceberg table will have a different data and metadata directory allowing it to exist independently of the source table.
-
-
Constructor Summary
Constructors Constructor Description Spark3SnapshotAction(org.apache.spark.sql.SparkSession spark, org.apache.spark.sql.connector.catalog.CatalogPlugin sourceCatalog, org.apache.spark.sql.connector.catalog.Identifier sourceTableIdent, org.apache.spark.sql.connector.catalog.CatalogPlugin destCatalog, org.apache.spark.sql.connector.catalog.Identifier destTableIdent)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Longexecute()Deprecated.Executes this action.SnapshotActionwithLocation(java.lang.String location)Deprecated.SnapshotActionwithProperties(java.util.Map<java.lang.String,java.lang.String> properties)Deprecated.Adds additional properties to the newly created Iceberg table.SnapshotActionwithProperty(java.lang.String key, java.lang.String value)Deprecated.Adds an additional property to the newly created Iceberg table.
-
-
-
Constructor Detail
-
Spark3SnapshotAction
public Spark3SnapshotAction(org.apache.spark.sql.SparkSession spark, org.apache.spark.sql.connector.catalog.CatalogPlugin sourceCatalog, org.apache.spark.sql.connector.catalog.Identifier sourceTableIdent, org.apache.spark.sql.connector.catalog.CatalogPlugin destCatalog, org.apache.spark.sql.connector.catalog.Identifier destTableIdent)Deprecated.
-
-
Method Detail
-
withLocation
public SnapshotAction withLocation(java.lang.String location)
Deprecated.- Specified by:
withLocationin interfaceSnapshotAction
-
withProperties
public SnapshotAction withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.Description copied from interface:CreateActionAdds additional properties to the newly created Iceberg table. Any properties with the same key name will be overwritten.- Specified by:
withPropertiesin interfaceCreateAction- Parameters:
properties- a map of properties to be included- Returns:
- this for chaining
-
withProperty
public SnapshotAction withProperty(java.lang.String key, java.lang.String value)
Deprecated.Description copied from interface:CreateActionAdds an additional property to the newly created Iceberg table. Any properties with the same key name will be overwritten.- Specified by:
withPropertyin interfaceCreateAction- Parameters:
key- the key of the property to addvalue- the value of the property to add- Returns:
- this for chaining
-
execute
public java.lang.Long execute()
Deprecated.Description copied from interface:ActionExecutes this action.- Specified by:
executein interfaceAction<CreateAction,java.lang.Long>- Returns:
- the result of this action
-
-