BytesRefArray
A simple append only random-access BytesRef array that stores full copies of the appended bytes in a ByteBlockPool.
Note: This class is not Thread-Safe!
Types
An extension of BytesRefIterator that allows retrieving the index of the current element
Used to iterate the elements of an array in a given order.
Functions
Clears this BytesRefArray
Returns the n'th element of this BytesRefArray
sugar for .iterator with a null comparator
Returns a BytesRefIterator with point in time semantics. The iterator provides access to all so far appended BytesRef instances.
Returns an IndexedBytesRefIterator with point in time semantics. The iterator provides access to all so far appended BytesRef instances. If a non-null sortState is specified then the iterator will iterate the byte values in the order of the sortState; otherwise, the order is the same as the values were appended.
Returns the current size of this BytesRefArray
Returns a SortState representing the order of elements in this array. This is a non-destructive operation.