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 java.lang.Object implements ViewOperations
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMETADATA_FOLDER_NAMEstatic java.lang.StringMETADATA_LOCATION_PROPstatic java.lang.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.java.lang.StringcurrentMetadataLocation()intcurrentVersion()protected voidrefreshFromMetadataLocation(java.lang.String newLocation, java.util.function.Predicate<java.lang.Exception> shouldRetry, int numRetries, java.util.function.Function<java.lang.String,ViewVersionMetadata> metadataLoader)protected voidrequestRefresh()protected java.lang.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 java.lang.String METADATA_LOCATION_PROP
- See Also:
- Constant Field Values
-
PREVIOUS_METADATA_LOCATION_PROP
public static final java.lang.String PREVIOUS_METADATA_LOCATION_PROP
- See Also:
- Constant Field Values
-
METADATA_FOLDER_NAME
public static final java.lang.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 java.lang.String currentMetadataLocation()
-
currentVersion
public int currentVersion()
-
requestRefresh
protected void requestRefresh()
-
writeNewMetadata
protected java.lang.String writeNewMetadata(ViewVersionMetadata metadata, int version)
-
refreshFromMetadataLocation
protected void refreshFromMetadataLocation(java.lang.String newLocation, java.util.function.Predicate<java.lang.Exception> shouldRetry, int numRetries, java.util.function.Function<java.lang.String,ViewVersionMetadata> metadataLoader)
-
-