Class BytesRefArray


  • public final class BytesRefArray
    extends Object
    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!
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • BytesRefArray

        public BytesRefArray​(Counter bytesUsed)
        Creates a new BytesRefArray with a counter to track allocated bytes