Class OnRefOnlySerializer

  • All Implemented Interfaces:
    org.projectnessie.versioned.store.ContentSerializer<OnRefOnly>

    public class OnRefOnlySerializer
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OnRefOnly applyId​(OnRefOnly content, java.lang.String id)  
      org.projectnessie.model.Content.Type contentType()  
      org.projectnessie.model.Content.Type getType​(com.google.protobuf.ByteString onRefContent)  
      byte payload()  
      com.google.protobuf.ByteString toStoreOnReferenceState​(OnRefOnly content, java.util.function.Consumer<org.projectnessie.versioned.ContentAttachment> attachmentConsumer)  
      C valueFromStore​(byte payload, com.google.protobuf.ByteString onReferenceValue, java.util.function.Supplier<com.google.protobuf.ByteString> globalState, java.util.function.Function<java.util.stream.Stream<org.projectnessie.versioned.ContentAttachmentKey>,​java.util.stream.Stream<org.projectnessie.versioned.ContentAttachment>> attachmentsRetriever)  
      protected OnRefOnly valueFromStore​(java.lang.String contentId, java.lang.String onRef, com.google.protobuf.ByteString global, java.util.function.Function<java.util.stream.Stream<org.projectnessie.versioned.ContentAttachmentKey>,​java.util.stream.Stream<org.projectnessie.versioned.ContentAttachment>> attachmentsRetriever)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.projectnessie.versioned.store.ContentSerializer

        requiresGlobalState, requiresGlobalState
    • Constructor Detail

      • OnRefOnlySerializer

        public OnRefOnlySerializer()
    • Method Detail

      • contentType

        public org.projectnessie.model.Content.Type contentType()
      • payload

        public byte payload()
      • toStoreOnReferenceState

        public com.google.protobuf.ByteString toStoreOnReferenceState​(OnRefOnly content,
                                                                      java.util.function.Consumer<org.projectnessie.versioned.ContentAttachment> attachmentConsumer)
      • valueFromStore

        protected OnRefOnly valueFromStore​(java.lang.String contentId,
                                           java.lang.String onRef,
                                           com.google.protobuf.ByteString global,
                                           java.util.function.Function<java.util.stream.Stream<org.projectnessie.versioned.ContentAttachmentKey>,​java.util.stream.Stream<org.projectnessie.versioned.ContentAttachment>> attachmentsRetriever)
      • getType

        public org.projectnessie.model.Content.Type getType​(com.google.protobuf.ByteString onRefContent)
        Specified by:
        getType in interface org.projectnessie.versioned.store.ContentSerializer<C extends org.projectnessie.model.Content>
      • valueFromStore

        public C valueFromStore​(byte payload,
                                com.google.protobuf.ByteString onReferenceValue,
                                java.util.function.Supplier<com.google.protobuf.ByteString> globalState,
                                java.util.function.Function<java.util.stream.Stream<org.projectnessie.versioned.ContentAttachmentKey>,​java.util.stream.Stream<org.projectnessie.versioned.ContentAttachment>> attachmentsRetriever)
        Specified by:
        valueFromStore in interface org.projectnessie.versioned.store.ContentSerializer<C extends org.projectnessie.model.Content>