Module org.elasticsearch.compute
Class BatchEncoder.Doubles
java.lang.Object
org.elasticsearch.compute.operator.mvdedupe.BatchEncoder
org.elasticsearch.compute.operator.mvdedupe.BatchEncoder.MVEncoder
org.elasticsearch.compute.operator.mvdedupe.BatchEncoder.Doubles
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable,org.elasticsearch.core.Releasable
- Enclosing class:
BatchEncoder
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.compute.operator.mvdedupe.BatchEncoder
BatchEncoder.Booleans, BatchEncoder.BytesRefs, BatchEncoder.Decoder, BatchEncoder.DirectBooleans, BatchEncoder.DirectBytesRefs, BatchEncoder.DirectDoubles, BatchEncoder.DirectEncoder, BatchEncoder.DirectInts, BatchEncoder.DirectLongs, BatchEncoder.DirectNulls, BatchEncoder.Doubles, BatchEncoder.Ints, BatchEncoder.IsNull, BatchEncoder.Longs, BatchEncoder.MVEncoder -
Field Summary
Fields inherited from class org.elasticsearch.compute.operator.mvdedupe.BatchEncoder.MVEncoder
bytesFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidencode(double v) Encode adoubleand advance to the next position.protected final voidensureCapacity(int count) Make sure there is capacity for this manydoubles, growing the buffer if needed.protected final booleanhasCapacity(int count) Is there capacity for this manydoubles?Methods inherited from class org.elasticsearch.compute.operator.mvdedupe.BatchEncoder.MVEncoder
addingValue, encodeNextBatch, encodeNull, endPosition, firstPosition, positionCount, ramBytesUsed, read, readNextBatch, startPosition, valueCountMethods inherited from class org.elasticsearch.compute.operator.mvdedupe.BatchEncoder
decoderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResourcesMethods inherited from interface org.elasticsearch.core.Releasable
close
-
Constructor Details
-
Doubles
protected Doubles(int batchSize)
-
-
Method Details
-
hasCapacity
protected final boolean hasCapacity(int count) Is there capacity for this manydoubles? -
ensureCapacity
protected final void ensureCapacity(int count) Make sure there is capacity for this manydoubles, growing the buffer if needed. -
encode
protected final void encode(double v) Encode adoubleand advance to the next position.
-