Package org.apache.iceberg
Class BaseMetastoreOperations
java.lang.Object
org.apache.iceberg.BaseMetastoreOperations
- Direct Known Subclasses:
BaseMetastoreTableOperations
,BaseViewOperations
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BaseMetastoreOperations.CommitStatus
checkCommitStatus
(String tableOrViewName, String newMetadataLocation, Map<String, String> properties, Supplier<Boolean> commitStatusSupplier) Attempt to load the content and see if any current or past metadata location matches the one we were attempting to set.
-
Constructor Details
-
BaseMetastoreOperations
public BaseMetastoreOperations()
-
-
Method Details
-
checkCommitStatus
protected BaseMetastoreOperations.CommitStatus checkCommitStatus(String tableOrViewName, String newMetadataLocation, Map<String, String> properties, Supplier<Boolean> commitStatusSupplier) Attempt to load the content and see if any current or past metadata location matches the one we were attempting to set. This is used as a last resort when we are dealing with exceptions that may indicate the commit has failed but don't have proof that this is the case. Note that all the previous locations must also be searched on the chance that a second committer was able to successfully commit on top of our commit.- Parameters:
tableOrViewName
- full name of the Table/ViewnewMetadataLocation
- the path of the new commit fileproperties
- properties for retrycommitStatusSupplier
- check if the latest metadata presents or not using metadata location for table.- Returns:
- Commit Status of Success, Failure or Unknown
-