Class ByteBufferReference

    • Method Detail

      • get

        public byte get​(int index)
        Description copied from class: BytesReference
        Returns the byte at the specified index. Need to be between 0 and length.
        Specified by:
        get in class BytesReference
      • getInt

        public int getInt​(int index)
        Description copied from class: BytesReference
        Returns the integer read from the 4 bytes (BE) starting at the given index.
        Overrides:
        getInt in class BytesReference
      • toBytesRef

        public BytesRef toBytesRef()
        This will return a bytes ref composed of the bytes. If this is a direct byte buffer, the bytes will have to be copied.
        Specified by:
        toBytesRef in class BytesReference
        Returns:
        the bytes ref