Class DefaultStoreWorker

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static org.projectnessie.model.Content.Type contentTypeForPayload​(int payload)  
      org.projectnessie.model.Content.Type getType​(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue)
      Deprecated.
      static StoreWorker instance()  
      static int payloadForContent​(org.projectnessie.model.Content c)  
      static int payloadForContent​(org.projectnessie.model.Content.Type contentType)  
      boolean requiresGlobalState​(int payload, org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue)
      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, java.util.function.Supplier<org.projectnessie.nessie.relocated.protobuf.ByteString> globalState)
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultStoreWorker

        public DefaultStoreWorker()
    • Method Detail

      • payloadForContent

        public static int payloadForContent​(org.projectnessie.model.Content c)
      • payloadForContent

        public static int payloadForContent​(org.projectnessie.model.Content.Type contentType)
      • contentTypeForPayload

        public static org.projectnessie.model.Content.Type contentTypeForPayload​(int payload)
      • toStoreOnReferenceState

        public org.projectnessie.nessie.relocated.protobuf.ByteString toStoreOnReferenceState​(org.projectnessie.model.Content content)
        Description copied from interface: StoreWorker
        Returns the serialized representation of the on-reference part of the given content-object.
        Specified by:
        toStoreOnReferenceState in interface StoreWorker
      • valueFromStore

        public org.projectnessie.model.Content valueFromStore​(int payload,
                                                              org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue)
        Specified by:
        valueFromStore in interface StoreWorker
      • valueFromStore

        @Deprecated
        public 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.
        Specified by:
        valueFromStore in interface StoreWorker
      • requiresGlobalState

        @Deprecated
        public boolean requiresGlobalState​(int payload,
                                           org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue)
        Deprecated.
        Description copied from interface: StoreWorker
        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.

        Specified by:
        requiresGlobalState in interface StoreWorker
      • getType

        @Deprecated
        public org.projectnessie.model.Content.Type getType​(int payload,
                                                            org.projectnessie.nessie.relocated.protobuf.ByteString onReferenceValue)
        Deprecated.
        Description copied from interface: StoreWorker
        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.

        Specified by:
        getType in interface StoreWorker