Package org.apache.iceberg.actions
Class Spark3MigrateAction
- java.lang.Object
-
- org.apache.iceberg.actions.Spark3MigrateAction
-
- All Implemented Interfaces:
Action<CreateAction,java.lang.Long>
,CreateAction
@Deprecated public class Spark3MigrateAction extends java.lang.Object implements CreateAction
Deprecated.since 0.12.0, will be removed in 0.13.0; useMigrateTable
instead.Takes a Spark table in the sourceCatalog and attempts to transform it into an Iceberg Table in the same location with the same identifier. Once complete the identifier which previously referred to a non-iceberg table will refer to the newly migrated iceberg table.
-
-
Constructor Summary
Constructors Constructor Description Spark3MigrateAction(org.apache.spark.sql.SparkSession spark, org.apache.spark.sql.connector.catalog.CatalogPlugin sourceCatalog, org.apache.spark.sql.connector.catalog.Identifier sourceTableName)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Long
execute()
Deprecated.Executes this action.CreateAction
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.Adds additional properties to the newly created Iceberg table.CreateAction
withProperty(java.lang.String key, java.lang.String value)
Deprecated.Adds an additional property to the newly created Iceberg table.
-
-
-
Method Detail
-
withProperties
public CreateAction withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.Description copied from interface:CreateAction
Adds additional properties to the newly created Iceberg table. Any properties with the same key name will be overwritten.- Specified by:
withProperties
in interfaceCreateAction
- Parameters:
properties
- a map of properties to be included- Returns:
- this for chaining
-
withProperty
public CreateAction withProperty(java.lang.String key, java.lang.String value)
Deprecated.Description copied from interface:CreateAction
Adds an additional property to the newly created Iceberg table. Any properties with the same key name will be overwritten.- Specified by:
withProperty
in 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:Action
Executes this action.- Specified by:
execute
in interfaceAction<CreateAction,java.lang.Long>
- Returns:
- the result of this action
-
-