Package org.projectnessie.versioned
Interface StoreWorker
-
- All Known Implementing Classes:
DefaultStoreWorker
public interface StoreWorkerA set of helpers that users of a VersionStore must implement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.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, java.util.function.Supplier<org.projectnessie.nessie.relocated.protobuf.ByteString> globalState)Deprecated.
-
-
-
Method Detail
-
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, java.util.function.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.
-
-