Class 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 Detail

      • AssetKey

        public AssetKey()
    • 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 True if the asset was deleted.
        • Return False if the asset was previously deleted and no longer exists.
        • Throw an exception if the asset could not be deleted.
      • 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.
      • equals

        public abstract boolean equals​(Object other)
        Overrides:
        equals in class Object
      • hashCode

        public abstract int hashCode()
        Overrides:
        hashCode in class Object