Class BytesArray

    • Constructor Detail

      • BytesArray

        public BytesArray​(java.lang.String bytes)
      • BytesArray

        public BytesArray​(org.apache.lucene.util.BytesRef bytesRef)
      • BytesArray

        public BytesArray​(org.apache.lucene.util.BytesRef bytesRef,
                          boolean deepCopy)
      • BytesArray

        public BytesArray​(byte[] bytes)
      • BytesArray

        public BytesArray​(byte[] bytes,
                          int offset,
                          int length)
    • 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
      • array

        public byte[] array()
      • offset

        public int offset()
      • toBytesRef

        public org.apache.lucene.util.BytesRef toBytesRef()
        Description copied from class: BytesReference
        Converts to Lucene BytesRef.
        Specified by:
        toBytesRef in class BytesReference