Class FixedLengthBytesRefArray

java.lang.Object
org.apache.lucene.util.FixedLengthBytesRefArray
All Implemented Interfaces:
SortableBytesRefArray

final class FixedLengthBytesRefArray extends Object implements SortableBytesRefArray
Just like BytesRefArray except all values have the same length.

Note: This class is not Thread-Safe!

  • Field Details

    • valueLength

      private final int valueLength
    • valuesPerBlock

      private final int valuesPerBlock
    • size

      private int size
      How many values have been appended
    • currentBlock

      private int currentBlock
      How many blocks are used
    • nextEntry

      private int nextEntry
    • blocks

      private byte[][] blocks
  • Constructor Details

    • FixedLengthBytesRefArray

      public FixedLengthBytesRefArray(int valueLength)
      Creates a new BytesRefArray with a counter to track allocated bytes
  • Method Details