Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Class AggregateMetricDoubleBlockBuilder
java.lang.Object
org.elasticsearch.compute.data.AbstractBlockBuilder
org.elasticsearch.compute.data.AggregateMetricDoubleBlockBuilder
- All Implemented Interfaces:
Closeable,AutoCloseable,Block.Builder,org.elasticsearch.core.Releasable,BlockLoader.AggregateMetricDoubleBuilder,BlockLoader.Builder
public class AggregateMetricDoubleBlockBuilder
extends AbstractBlockBuilder
implements BlockLoader.AggregateMetricDoubleBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enum -
Field Summary
Fields inherited from class org.elasticsearch.compute.data.AbstractBlockBuilder
blockFactory, estimatedBytes, firstValueIndexes, hasMultiValues, hasNonNullValue, mvOrdering, nullsMask, positionCount, positionEntryIsOpen, valueCount -
Constructor Summary
ConstructorsConstructorDescriptionAggregateMetricDoubleBlockBuilder(int estimatedSize, BlockFactory blockFactory) -
Method Summary
Modifier and TypeMethodDescriptionAppends a null value to the block.build()Builds the block.Copy the values inblockfrombeginInclusivetoendExclusiveinto this builder.count()protected intThe number of bytes used to represent each value element.protected voidCalled when firstclosed.protected voidgrowValuesArray(int newSize) max()min()mvOrdering(Block.MvOrdering mvOrdering) How are multivalued fields ordered? This defaults toBlock.MvOrdering.UNORDEREDbut when you set it toBlock.MvOrdering.DEDUPLICATED_AND_SORTED_ASCENDINGsome operators can optimize themselves.sum()protected intThe length of the internal values array.Methods inherited from class org.elasticsearch.compute.data.AbstractBlockBuilder
adjustBreaker, beginPositionEntry, built, close, endPositionEntry, ensureCapacity, estimatedBytes, finish, isDense, isReleased, singleValued, updatePosition, writeNullValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.Releasable
close
-
Constructor Details
-
AggregateMetricDoubleBlockBuilder
-
-
Method Details
-
valuesLength
protected int valuesLength()Description copied from class:AbstractBlockBuilderThe length of the internal values array.- Specified by:
valuesLengthin classAbstractBlockBuilder
-
growValuesArray
protected void growValuesArray(int newSize) - Specified by:
growValuesArrayin classAbstractBlockBuilder
-
elementSize
protected int elementSize()Description copied from class:AbstractBlockBuilderThe number of bytes used to represent each value element.- Specified by:
elementSizein classAbstractBlockBuilder
-
copyFrom
Description copied from interface:Block.BuilderCopy the values inblockfrombeginInclusivetoendExclusiveinto this builder.For single position copies use the faster
IntBlock.Builder.copyFrom(IntBlock, int),LongBlock.Builder.copyFrom(LongBlock, int), etc.- Specified by:
copyFromin interfaceBlock.Builder
-
appendNull
Description copied from interface:Block.BuilderAppends a null value to the block.- Specified by:
appendNullin interfaceBlock.Builder- Specified by:
appendNullin interfaceBlockLoader.Builder- Overrides:
appendNullin classAbstractBlockBuilder
-
mvOrdering
Description copied from interface:Block.BuilderHow are multivalued fields ordered? This defaults toBlock.MvOrdering.UNORDEREDbut when you set it toBlock.MvOrdering.DEDUPLICATED_AND_SORTED_ASCENDINGsome operators can optimize themselves. This is a promise that is never checked. If you set this to anything other thanBlock.MvOrdering.UNORDEREDbe sure the values are in that order or other operators will make mistakes. The actual ordering isn't checked at runtime.- Specified by:
mvOrderingin interfaceBlock.Builder
-
build
Description copied from interface:Block.BuilderBuilds the block. This method can be called multiple times.- Specified by:
buildin interfaceBlock.Builder- Specified by:
buildin interfaceBlockLoader.Builder
-
extraClose
protected void extraClose()Description copied from class:AbstractBlockBuilderCalled when firstclosed.- Overrides:
extraClosein classAbstractBlockBuilder
-
min
- Specified by:
minin interfaceBlockLoader.AggregateMetricDoubleBuilder
-
max
- Specified by:
maxin interfaceBlockLoader.AggregateMetricDoubleBuilder
-
sum
- Specified by:
sumin interfaceBlockLoader.AggregateMetricDoubleBuilder
-
count
- Specified by:
countin interfaceBlockLoader.AggregateMetricDoubleBuilder
-