BytesRef
constructor()
Create a BytesRef with EMPTY_BYTES
This instance will directly reference bytes w/o making a copy. bytes should not be null.
This instance will directly reference bytes w/o making a copy. bytes should not be null
Create a BytesRef pointing to a new array of size capacity. Offset and length will both be zero.
Initialize the byte[] from the UTF8 bytes for the provided String.
Parameters
text
This must be well-formed unicode text, with no unpaired surrogates.