Package org.projectnessie.versioned.gc
Class AssetKey
- java.lang.Object
-
- org.projectnessie.versioned.gc.AssetKey
-
public abstract class AssetKey extends Object
Assets associated with one or more values.Assets are pointers in a reference tree. The purpose of an Asset object is to expose the items pointed to by a stored value
-
-
Constructor Summary
Constructors Constructor Description AssetKey()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CompletionStage<Boolean>delete()An idempotent deletion.abstract booleanequals(Object other)abstract inthashCode()abstract List<String>toReportableName()Expose a description of this object to be used for reporting purposes.abstract com.google.protobuf.ByteStringtoUniqueKey()Expose a unique key for this asset for equality purposes.
-
-
-
Method Detail
-
delete
public abstract CompletionStage<Boolean> delete()
An idempotent deletion.Given the lack of consistency guarantees in deletion of external assets, Nessie may call this method multiple times on the same AssetKey. This future should:
- Return
Trueif the asset was deleted. - Return
Falseif the asset was previously deleted and no longer exists. - Throw an exception if the asset could not be deleted.
- Return
-
toReportableName
public abstract List<String> toReportableName()
Expose a description of this object to be used for reporting purposes.- Returns:
- A tuple of names associated with this object.
-
toUniqueKey
public abstract com.google.protobuf.ByteString toUniqueKey()
Expose a unique key for this asset for equality purposes.
-
-