Class ClickHouseByteBuffer

    • Field Detail

      • EMPTY_BYTES

        public static final byte[] EMPTY_BYTES
        Empty byte array.
      • EMPTY_BUFFER

        public static final ByteBuffer EMPTY_BUFFER
        Empty and read-only byte buffer.
      • array

        protected byte[] array
      • position

        protected int position
      • length

        protected int length
    • Constructor Detail

      • ClickHouseByteBuffer

        protected ClickHouseByteBuffer​(byte[] bytes,
                                       int offset,
                                       int length)
    • Method Detail

      • newInstance

        public static ClickHouseByteBuffer newInstance()
        Creates an empty byte buffer.
        Returns:
        empty byte buffer
      • of

        public static ClickHouseByteBuffer of​(byte[] bytes)
        Wraps given byte array as byte buffer.
        Parameters:
        bytes - byte array
        Returns:
        byte buffer
      • of

        public static ClickHouseByteBuffer of​(byte[] bytes,
                                              int offset,
                                              int length)
        Wraps given byte array as byte buffer.
        Parameters:
        bytes - byte array
        offset - offset
        length - length
        Returns:
        byte buffer
      • isEmpty

        public boolean isEmpty()
      • array

        public byte[] array()
      • position

        public int position()
      • length

        public int length()
      • limit

        public int limit()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object