Package org.apache.iceberg.nessie
Class NessieViewOperations
java.lang.Object
org.apache.iceberg.viewdepoc.BaseMetastoreViewOperations
org.apache.iceberg.nessie.NessieViewOperations
- All Implemented Interfaces:
ViewOperations
-
Field Summary
Fields inherited from class org.apache.iceberg.viewdepoc.BaseMetastoreViewOperations
METADATA_FOLDER_NAME, METADATA_LOCATION_PROP, PREVIOUS_METADATA_LOCATION_PROP -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit(ViewVersionMetadata base, ViewVersionMetadata metadata, Map<String, String> properties) Replace the base metadata with a new version.voidDrops the view specified by the 'viewIdentifier' parameter.org.apache.iceberg.io.FileIOio()AFileIOto read and write table data and metadata files.refresh()Return the current view metadata after checking for updates.Methods inherited from class org.apache.iceberg.viewdepoc.BaseMetastoreViewOperations
current, currentMetadataLocation, currentVersion, refreshFromMetadataLocation, requestRefresh, writeNewMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.viewdepoc.ViewOperations
extraProperties
-
Method Details
-
refresh
Description copied from interface:ViewOperationsReturn the current view metadata after checking for updates.- Returns:
- view version metadata
-
drop
Description copied from interface:ViewOperationsDrops the view specified by the 'viewIdentifier' parameter. Used only by the test infrastructure such as HadoopViewOperations and TestViews. Metacat views are dropped using direct hive 'drop' object calls.- Parameters:
viewIdentifier- specifies the name/location of the view.
-
commit
public void commit(ViewVersionMetadata base, ViewVersionMetadata metadata, Map<String, String> properties) Description copied from interface:ViewOperationsReplace the base metadata with a new version.This method should implement and document atomicity guarantees.
Implementations must check that the base metadata is current to avoid overwriting updates. Once the atomic commit operation succeeds, implementations must not perform any operations that may fail because failure in this method cannot be distinguished from commit failure.
- Parameters:
base- view metadata on which changes were basedmetadata- new view metadata with updatesproperties- Version property genie-id of the operation, as well as table properties such as owner, table type, common view flag etc.
-
io
public org.apache.iceberg.io.FileIO io()Description copied from interface:ViewOperationsAFileIOto read and write table data and metadata files.- Returns:
- a
FileIOto read and write table data and metadata files
-