Package org.apache.iceberg.actions
Interface SnapshotTable
- All Superinterfaces:
Action<SnapshotTable,SnapshotTable.Result>
- All Known Implementing Classes:
SnapshotTableSparkAction
An action that creates an independent snapshot of an existing table.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe action result that contains a summary of the execution. -
Method Summary
Modifier and TypeMethodDescriptionSets the table identifier for the newly created Iceberg table.default SnapshotTableexecuteWith(ExecutorService service) Sets the executor service to use for parallel file reading.default SnapshotTableEnables ignoringFileNotFoundExceptionwhen listing source data files.tableLocation(String location) Sets the table location for the newly created Iceberg table.tableProperties(Map<String, String> properties) Sets table properties in the newly created Iceberg table.tableProperty(String key, String value) Sets a table property in the newly created Iceberg table.
-
Method Details
-
as
Sets the table identifier for the newly created Iceberg table.- Parameters:
destTableIdent- the destination table identifier- Returns:
- this for method chaining
-
tableLocation
Sets the table location for the newly created Iceberg table.- Parameters:
location- a table location- Returns:
- this for method chaining
-
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 be included- Returns:
- this for method chaining
-
tableProperty
Sets a table property in the newly created Iceberg table. Any properties with the same key name will be overwritten.- Parameters:
key- the key of the property to addvalue- the value of the property to add- Returns:
- this for method chaining
-
executeWith
Sets the executor service to use for parallel file reading. The default is not using executor service.- Parameters:
service- executor service- Returns:
- this for method chaining
-
ignoreMissingFiles
Enables ignoringFileNotFoundExceptionwhen listing source data files. When enabled, source data files that have disappeared (for example, because a partition directory was removed by concurrent cleanup) are skipped with a warning instead of failing the snapshot. The default is to fail.- Returns:
- this for method chaining
-