Package org.projectnessie.versioned
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 TypeMethodDescriptionorg.projectnessie.model.Content.TypegetType(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onRefContent) Deprecated.booleanrequiresGlobalState(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString content) Deprecated.org.projectnessie.nessie.relocated.protobuf.ByteStringtoStoreOnReferenceState(org.projectnessie.model.Content content) Returns the serialized representation of the on-reference part of the given content-object.org.projectnessie.model.ContentvalueFromStore(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue) org.projectnessie.model.ContentvalueFromStore(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 theContent.Typefor the given persisted representation.Needs both
payloadandonRefContentfor backwards compatibility, because old persisted content objects can have fixedpayload == 0, therefore the implementation for the default types (Iceberg, DL, Namespace) needs this.
-