public interface SupportsSnapshots extends Catalog
Catalog
supports committing and loading table snapshots.Catalog.ColumnAlreadyExistException, Catalog.ColumnNotExistException, Catalog.DatabaseAlreadyExistException, Catalog.DatabaseNoPermissionException, Catalog.DatabaseNotEmptyException, Catalog.DatabaseNotExistException, Catalog.ProcessSystemDatabaseException, Catalog.TableAlreadyExistException, Catalog.TableNoPermissionException, Catalog.TableNotExistException, Catalog.ViewAlreadyExistException, Catalog.ViewNotExistException
COMMENT_PROP, DB_LOCATION_PROP, DB_SUFFIX, DEFAULT_DATABASE, LAST_UPDATE_TIME_PROP, NUM_FILES_PROP, NUM_ROWS_PROP, OWNER_PROP, SYSTEM_BRANCH_PREFIX, SYSTEM_DATABASE_NAME, SYSTEM_TABLE_SPLITTER, TABLE_DEFAULT_OPTION_PREFIX, TOTAL_SIZE_PROP
Modifier and Type | Method and Description |
---|---|
boolean |
commitSnapshot(Identifier identifier,
Snapshot snapshot,
List<Partition> statistics)
Commit the
Snapshot for table identified by the given Identifier . |
Optional<Snapshot> |
loadSnapshot(Identifier identifier)
Return the snapshot of table identified by the given
Identifier . |
alterDatabase, alterPartitions, alterTable, alterTable, caseSensitive, catalogLoader, createDatabase, createDatabase, createPartitions, createTable, createView, dropDatabase, dropPartitions, dropTable, dropView, getDatabase, getTable, getView, invalidateTable, listDatabases, listPartitions, listTables, listViews, markDonePartitions, options, renameTable, renameView, repairCatalog, repairDatabase, repairTable
close
boolean commitSnapshot(Identifier identifier, Snapshot snapshot, List<Partition> statistics) throws Catalog.TableNotExistException
Snapshot
for table identified by the given Identifier
.identifier
- Path of the tablesnapshot
- Snapshot to be committedstatistics
- statistics information of this changeCatalog.TableNotExistException
- if the target does not existOptional<Snapshot> loadSnapshot(Identifier identifier) throws Catalog.TableNotExistException
Identifier
.identifier
- Path of the tableCatalog.TableNotExistException
- if the target does not existCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.