Class ProtoSerialization


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.projectnessie.versioned.storage.common.persist.Obj deserializeObj​(org.projectnessie.versioned.storage.common.persist.ObjId id, byte[] serialized)  
      static org.projectnessie.versioned.storage.common.persist.Obj deserializeObj​(org.projectnessie.versioned.storage.common.persist.ObjId id, java.nio.ByteBuffer serialized)  
      static org.projectnessie.versioned.storage.common.persist.ObjId deserializeObjId​(org.projectnessie.nessie.relocated.protobuf.ByteString bytes)  
      static java.util.List<org.projectnessie.versioned.storage.common.persist.ObjId> deserializeObjIds​(java.util.List<org.projectnessie.nessie.relocated.protobuf.ByteString> predecessorsList)  
      static void deserializeObjIds​(java.util.List<org.projectnessie.nessie.relocated.protobuf.ByteString> bytes, java.util.function.Consumer<org.projectnessie.versioned.storage.common.persist.ObjId> receiver)  
      static org.projectnessie.versioned.storage.common.persist.Obj deserializeObjProto​(org.projectnessie.versioned.storage.common.persist.ObjId id, org.projectnessie.versioned.storage.common.proto.StorageTypes.ObjProto obj)  
      static java.util.List<org.projectnessie.versioned.storage.common.persist.Reference.PreviousPointer> deserializePreviousPointers​(byte[] previousPointers)  
      static org.projectnessie.versioned.storage.common.persist.Reference deserializeReference​(byte[] reference)  
      static byte[] serializeObj​(org.projectnessie.versioned.storage.common.persist.Obj obj, int incrementalIndexSizeLimit, int indexSizeLimit)  
      static org.projectnessie.nessie.relocated.protobuf.ByteString serializeObjId​(org.projectnessie.versioned.storage.common.persist.ObjId id)  
      static void serializeObjIds​(java.util.List<org.projectnessie.versioned.storage.common.persist.ObjId> ids, java.util.function.Consumer<org.projectnessie.nessie.relocated.protobuf.ByteString> receiver)  
      static byte[] serializePreviousPointers​(java.util.List<org.projectnessie.versioned.storage.common.persist.Reference.PreviousPointer> previousPointers)  
      static byte[] serializeReference​(org.projectnessie.versioned.storage.common.persist.Reference reference)  
      • Methods inherited from class java.lang.Object

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

      • serializeReference

        public static byte[] serializeReference​(org.projectnessie.versioned.storage.common.persist.Reference reference)
      • deserializeReference

        public static org.projectnessie.versioned.storage.common.persist.Reference deserializeReference​(byte[] reference)
      • serializePreviousPointers

        public static byte[] serializePreviousPointers​(java.util.List<org.projectnessie.versioned.storage.common.persist.Reference.PreviousPointer> previousPointers)
      • deserializePreviousPointers

        public static java.util.List<org.projectnessie.versioned.storage.common.persist.Reference.PreviousPointer> deserializePreviousPointers​(byte[] previousPointers)
      • serializeObjId

        public static org.projectnessie.nessie.relocated.protobuf.ByteString serializeObjId​(org.projectnessie.versioned.storage.common.persist.ObjId id)
      • deserializeObjId

        public static org.projectnessie.versioned.storage.common.persist.ObjId deserializeObjId​(org.projectnessie.nessie.relocated.protobuf.ByteString bytes)
      • serializeObjIds

        public static void serializeObjIds​(java.util.List<org.projectnessie.versioned.storage.common.persist.ObjId> ids,
                                           java.util.function.Consumer<org.projectnessie.nessie.relocated.protobuf.ByteString> receiver)
      • deserializeObjIds

        public static void deserializeObjIds​(java.util.List<org.projectnessie.nessie.relocated.protobuf.ByteString> bytes,
                                             java.util.function.Consumer<org.projectnessie.versioned.storage.common.persist.ObjId> receiver)
      • deserializeObjIds

        public static java.util.List<org.projectnessie.versioned.storage.common.persist.ObjId> deserializeObjIds​(java.util.List<org.projectnessie.nessie.relocated.protobuf.ByteString> predecessorsList)
      • serializeObj

        public static byte[] serializeObj​(org.projectnessie.versioned.storage.common.persist.Obj obj,
                                          int incrementalIndexSizeLimit,
                                          int indexSizeLimit)
                                   throws org.projectnessie.versioned.storage.common.exceptions.ObjTooLargeException
        Throws:
        org.projectnessie.versioned.storage.common.exceptions.ObjTooLargeException
      • deserializeObj

        public static org.projectnessie.versioned.storage.common.persist.Obj deserializeObj​(org.projectnessie.versioned.storage.common.persist.ObjId id,
                                                                                            java.nio.ByteBuffer serialized)
      • deserializeObj

        public static org.projectnessie.versioned.storage.common.persist.Obj deserializeObj​(org.projectnessie.versioned.storage.common.persist.ObjId id,
                                                                                            byte[] serialized)
      • deserializeObjProto

        public static org.projectnessie.versioned.storage.common.persist.Obj deserializeObjProto​(org.projectnessie.versioned.storage.common.persist.ObjId id,
                                                                                                 org.projectnessie.versioned.storage.common.proto.StorageTypes.ObjProto obj)