Class BatchEncoder.Doubles

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

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

    • Doubles

      protected Doubles(int batchSize)
  • Method Details

    • hasCapacity

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

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

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