- <init>
This instance will directly reference bytes w/o making a copy. bytes should not
be null.
- utf8ToString
Interprets stored bytes as UTF8 bytes, returning the resulting string
- deepCopyOf
Creates a new BytesRef that points to a copy of the bytes fromother The returned
BytesRef will have
- compareTo
Unsigned byte order comparison
- equals
- hashCode
Calculates the hash code as required by TermsHash during indexing. This is
currently implemented as
- bytesEquals
Expert: compares the bytes against another BytesRef, returning true if the bytes
are equal.
- toString
Returns hex encoded bytes, eg [0x6c 0x75 0x63 0x65 0x6e 0x65]
- clone
Returns a shallow clone of this instance (the underlying bytes arenot copied and
will be shared by b
- getUTF8SortedAsUnicodeComparator
- copyBytes
- isValid
Performs internal consistency checks. Always returns true (or throws
IllegalStateException)