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 SummaryConstructors 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 SummaryAll 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- 
Spark3SnapshotActionpublic 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- 
withLocationpublic SnapshotAction withLocation(java.lang.String location) Deprecated.- Specified by:
- withLocationin interface- SnapshotAction
 
 - 
withPropertiespublic 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 interface- CreateAction
- Parameters:
- properties- a map of properties to be included
- Returns:
- this for chaining
 
 - 
withPropertypublic 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 interface- CreateAction
- Parameters:
- key- the key of the property to add
- value- the value of the property to add
- Returns:
- this for chaining
 
 - 
executepublic java.lang.Long execute() Deprecated.Description copied from interface:ActionExecutes this action.- Specified by:
- executein interface- Action<CreateAction,java.lang.Long>
- Returns:
- the result of this action
 
 
- 
 
-