Package org.apache.iceberg.delta
Interface SnapshotDeltaLakeTable
- All Superinterfaces:
Action<SnapshotDeltaLakeTable,
SnapshotDeltaLakeTable.Result>
@Enclosing
public interface SnapshotDeltaLakeTable
extends Action<SnapshotDeltaLakeTable,SnapshotDeltaLakeTable.Result>
Snapshot an existing Delta Lake table to Iceberg in place.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The action result that contains a summary of the execution. -
Method Summary
Modifier and TypeMethodDescriptionas
(TableIdentifier identifier) Sets the identifier of the newly created Iceberg table.deltaLakeConfiguration
(org.apache.hadoop.conf.Configuration conf) Sets the Hadoop configuration used to access delta lake table's logs and datafiles.icebergCatalog
(Catalog catalog) Sets the catalog of the newly created Iceberg table.tableLocation
(String location) Sets the location of the newly created Iceberg table.tableProperties
(Map<String, String> properties) Sets table properties in the newly created Iceberg table.tableProperty
(String name, String value) Sets a table property in the newly created Iceberg table.
-
Method Details
-
tableProperties
Sets table properties in the newly created Iceberg table. Any properties with the same key name will be overwritten.- Parameters:
properties
- a map of properties to set- Returns:
- this for method chaining
-
tableProperty
Sets a table property in the newly created Iceberg table. Any properties with the same key will be overwritten.- Parameters:
name
- a table property namevalue
- a table property value- Returns:
- this for method chaining
-
tableLocation
Sets the location of the newly created Iceberg table. Default location is the same as the Delta Lake table.- Parameters:
location
- a path to the new table location- Returns:
- this for method chaining
-
as
Sets the identifier of the newly created Iceberg table. This is required to be set before execute the action.- Parameters:
identifier
- a table identifier (namespace, name) @Returns this for method chaining
-
icebergCatalog
Sets the catalog of the newly created Iceberg table. This is required to be set before execute the action- Parameters:
catalog
- a catalog @Returns this for method chaining
-
deltaLakeConfiguration
Sets the Hadoop configuration used to access delta lake table's logs and datafiles. This is required to be set before execute the action.- Parameters:
conf
- a Hadoop configuration @Returns this for method chaining
-