Package org.apache.iceberg.view
Class BaseMetastoreViewOperations
- java.lang.Object
-
- org.apache.iceberg.view.BaseMetastoreViewOperations
-
- All Implemented Interfaces:
ViewOperations
- Direct Known Subclasses:
NessieViewOperations
public abstract class BaseMetastoreViewOperations extends Object implements ViewOperations
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETADATA_FOLDER_NAMEstatic StringMETADATA_LOCATION_PROPstatic StringPREVIOUS_METADATA_LOCATION_PROP
-
Constructor Summary
Constructors Constructor Description BaseMetastoreViewOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewVersionMetadatacurrent()Return the currently loaded view metadata, without checking for updates.StringcurrentMetadataLocation()intcurrentVersion()protected voidrefreshFromMetadataLocation(String newLocation, Predicate<Exception> shouldRetry, int numRetries)protected voidrequestRefresh()protected StringwriteNewMetadata(ViewVersionMetadata metadata, int version)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.view.ViewOperations
commit, drop, extraProperties, io, refresh
-
-
-
-
Field Detail
-
METADATA_LOCATION_PROP
public static final String METADATA_LOCATION_PROP
- See Also:
- Constant Field Values
-
PREVIOUS_METADATA_LOCATION_PROP
public static final String PREVIOUS_METADATA_LOCATION_PROP
- See Also:
- Constant Field Values
-
METADATA_FOLDER_NAME
public static final String METADATA_FOLDER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
current
public ViewVersionMetadata current()
Description copied from interface:ViewOperationsReturn the currently loaded view metadata, without checking for updates.- Specified by:
currentin interfaceViewOperations- Returns:
- view version metadata
-
currentMetadataLocation
public String currentMetadataLocation()
-
currentVersion
public int currentVersion()
-
requestRefresh
protected void requestRefresh()
-
writeNewMetadata
protected String writeNewMetadata(ViewVersionMetadata metadata, int version)
-
-