Class IcebergTableSerializer

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

    public final class IcebergTableSerializer
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.projectnessie.model.IcebergTable applyId​(org.projectnessie.model.IcebergTable content, java.lang.String id)  
      org.projectnessie.model.Content.Type contentType()  
      byte payload()  
      boolean requiresGlobalState​(com.google.protobuf.ByteString content)  
      com.google.protobuf.ByteString toStoreOnReferenceState​(C content, java.util.function.Consumer<org.projectnessie.versioned.ContentAttachment> attachmentConsumer)  
      protected void toStoreOnRefState​(org.projectnessie.model.IcebergTable table, org.projectnessie.server.store.proto.ObjectTypes.Content.Builder builder)  
      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 org.projectnessie.model.IcebergTable valueFromStore​(org.projectnessie.server.store.proto.ObjectTypes.Content content, java.util.function.Supplier<com.google.protobuf.ByteString> globalState)  
      • 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

        getType, requiresGlobalState
    • Constructor Detail

      • IcebergTableSerializer

        public IcebergTableSerializer()
    • Method Detail

      • contentType

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

        public byte payload()
      • toStoreOnRefState

        protected void toStoreOnRefState​(org.projectnessie.model.IcebergTable table,
                                         org.projectnessie.server.store.proto.ObjectTypes.Content.Builder builder)
      • applyId

        public org.projectnessie.model.IcebergTable applyId​(org.projectnessie.model.IcebergTable content,
                                                            java.lang.String id)
      • requiresGlobalState

        public boolean requiresGlobalState​(com.google.protobuf.ByteString content)
      • valueFromStore

        protected org.projectnessie.model.IcebergTable valueFromStore​(org.projectnessie.server.store.proto.ObjectTypes.Content content,
                                                                      java.util.function.Supplier<com.google.protobuf.ByteString> globalState)
      • toStoreOnReferenceState

        public com.google.protobuf.ByteString toStoreOnReferenceState​(C content,
                                                                      java.util.function.Consumer<org.projectnessie.versioned.ContentAttachment> attachmentConsumer)
        Specified by:
        toStoreOnReferenceState 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>