Package org.apache.iceberg.viewdepoc
Class BaseMetastoreViewOperations
java.lang.Object
org.apache.iceberg.viewdepoc.BaseMetastoreViewOperations
- All Implemented Interfaces:
ViewOperations
- Direct Known Subclasses:
NessieViewOperations
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent()Return the currently loaded view metadata, without checking for updates.intprotected voidrefreshFromMetadataLocation(String newLocation, Predicate<Exception> shouldRetry, int numRetries, Function<String, ViewVersionMetadata> metadataLoader) protected voidprotected StringwriteNewMetadata(ViewVersionMetadata metadata, int version) Methods 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
commit, drop, extraProperties, io, refresh
-
Field Details
-
METADATA_LOCATION_PROP
- See Also:
-
PREVIOUS_METADATA_LOCATION_PROP
- See Also:
-
METADATA_FOLDER_NAME
- See Also:
-
-
Constructor Details
-
BaseMetastoreViewOperations
public BaseMetastoreViewOperations()
-
-
Method Details
-
current
Description copied from interface:ViewOperationsReturn the currently loaded view metadata, without checking for updates.- Specified by:
currentin interfaceViewOperations- Returns:
- view version metadata
-
currentMetadataLocation
-
currentVersion
public int currentVersion() -
requestRefresh
protected void requestRefresh() -
writeNewMetadata
-
refreshFromMetadataLocation
-