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

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

    • Longs

      protected Longs(int batchSize)
  • Method Details

    • hasCapacity

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

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

      protected final void encode(long v)
      Encode a long and advance to the next position.