Class Serializers.VarLongSerializer

  • Enclosing class:
    Serializers

    public static final class Serializers.VarLongSerializer
    extends java.lang.Object
    Serializes the given long to as many bytes as required.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int bytesRequired​(long value)  
      long deserialize​(byte[] bytes)  
      long deserialize​(byte[] bytes, int offset, int length)  
      long deserialize​(java.nio.ByteBuffer bytes, int offset, int length)  
      byte[] serialize​(long value)  
      int serialize​(long value, byte[] bytes, int offset)  
      • Methods inherited from class java.lang.Object

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

      • VarLongSerializer

        public VarLongSerializer()
    • Method Detail

      • bytesRequired

        public int bytesRequired​(long value)
      • serialize

        public byte[] serialize​(long value)
      • serialize

        public int serialize​(long value,
                             byte[] bytes,
                             int offset)
      • deserialize

        public long deserialize​(byte[] bytes)
      • deserialize

        public long deserialize​(byte[] bytes,
                                int offset,
                                int length)
      • deserialize

        public long deserialize​(java.nio.ByteBuffer bytes,
                                int offset,
                                int length)