Interface StoreWorker

All Known Implementing Classes:
DefaultStoreWorker

public interface StoreWorker
A set of helpers that users of a VersionStore must implement.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.projectnessie.model.Content.Type
    getType(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onRefContent)
    Deprecated.
    boolean
    requiresGlobalState(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString content)
    Deprecated.
    org.projectnessie.nessie.relocated.protobuf.ByteString
    toStoreOnReferenceState(org.projectnessie.model.Content content)
    Returns the serialized representation of the on-reference part of the given content-object.
    org.projectnessie.model.Content
    valueFromStore(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue)
     
    org.projectnessie.model.Content
    valueFromStore(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue, Supplier<org.projectnessie.nessie.relocated.protobuf.ByteString> globalState)
    Deprecated.
  • Method Details

    • toStoreOnReferenceState

      org.projectnessie.nessie.relocated.protobuf.ByteString toStoreOnReferenceState(org.projectnessie.model.Content content)
      Returns the serialized representation of the on-reference part of the given content-object.
    • valueFromStore

      org.projectnessie.model.Content valueFromStore(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue)
    • valueFromStore

      @Deprecated org.projectnessie.model.Content valueFromStore(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue, Supplier<org.projectnessie.nessie.relocated.protobuf.ByteString> globalState)
      Deprecated.
    • requiresGlobalState

      @Deprecated boolean requiresGlobalState(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString content)
      Deprecated.
      Checks whether the given persisted content has been persisted using global state.

      This function can be entirely removed once all content objects are guaranteed to have no global state.

    • getType

      @Deprecated org.projectnessie.model.Content.Type getType(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onRefContent)
      Deprecated.
      Retrieve the Content.Type for the given persisted representation.

      Needs both payload and onRefContent for backwards compatibility, because old persisted content objects can have fixed payload == 0, therefore the implementation for the default types (Iceberg, DL, Namespace) needs this.