Module org.elasticsearch.compute
Class BatchEncoder.Ints
java.lang.Object
org.elasticsearch.compute.operator.mvdedupe.BatchEncoder
org.elasticsearch.compute.operator.mvdedupe.BatchEncoder.MVEncoder
org.elasticsearch.compute.operator.mvdedupe.BatchEncoder.Ints
- 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(int v) Encode anintinto the current position and advance to the next position.protected final voidensureCapacity(int count) Make sure there is capacity for this manyints, growing the buffer if needed.protected final booleanhasCapacity(int count) Is there capacity for this manyints?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
-
Ints
protected Ints(int batchSize)
-
-
Method Details
-
hasCapacity
protected final boolean hasCapacity(int count) Is there capacity for this manyints? -
ensureCapacity
protected final void ensureCapacity(int count) Make sure there is capacity for this manyints, growing the buffer if needed. -
encode
protected final void encode(int v) Encode anintinto the current position and advance to the next position.
-