All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.util.Accountable, org.elasticsearch.core.Releasable
Enclosing class:
BatchEncoder

protected abstract static class BatchEncoder.Ints extends BatchEncoder.MVEncoder
  • Constructor Details

    • Ints

      protected Ints(int batchSize)
  • Method Details

    • hasCapacity

      protected final boolean hasCapacity(int count)
      Is there capacity for this many ints?
    • ensureCapacity

      protected final void ensureCapacity(int count)
      Make sure there is capacity for this many ints, growing the buffer if needed.
    • encode

      protected final void encode(int v)
      Encode an int into the current position and advance to the next position.