java.lang.Object
org.elasticsearch.compute.data.AbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder<TDigestBlock>
org.elasticsearch.compute.data.TDigestBlockBuilder
- All Implemented Interfaces:
Closeable,AutoCloseable,Block.Builder,TDigestBlock.Builder,Releasable,BlockLoader.Builder,BlockLoader.TDigestBuilder
public final class TDigestBlockBuilder
extends AbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder<TDigestBlock>
implements TDigestBlock.Builder
-
Field Summary
Fields inherited from class org.elasticsearch.compute.data.AbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder
blockFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends a null value to the block.copyFrom(TDigestBlock block, int position) Copy the values inblockfrom the given positon into this builder.protected voidcopySubBlockPositions(AbstractDelegatingCompoundBlock<?> block, int startSubBlockPos, int endSubBlockPos) Copy the range of sub-block positions from the provided block into this builder.voiddoBuild(int positionCount, int[] firstValueIndexes) longAn estimate of the number of bytes theBlockcreated byBlock.Builder.build()will use.protected voidCalled whenAbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder.close()was invoked.maxima()minima()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.sums()Methods inherited from class org.elasticsearch.compute.data.AbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder
beginPositionEntry, build, close, copyFrom, endPositionEntry, isPositionEntryOpen, valueAppendedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.data.Block.Builder
beginPositionEntry, copyFrom, endPositionEntryMethods inherited from interface org.elasticsearch.core.Releasable
closeMethods inherited from interface org.elasticsearch.compute.data.TDigestBlock.Builder
build
-
Constructor Details
-
TDigestBlockBuilder
-
-
Method Details
-
copySubBlockPositions
protected void copySubBlockPositions(AbstractDelegatingCompoundBlock<?> block, int startSubBlockPos, int endSubBlockPos) Description copied from class:AbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilderCopy the range of sub-block positions from the provided block into this builder.- Specified by:
copySubBlockPositionsin classAbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder<TDigestBlock>
-
copyFrom
Description copied from interface:TDigestBlock.BuilderCopy the values inblockfrom the given positon into this builder.- Specified by:
copyFromin interfaceTDigestBlock.Builder
-
appendNull
Description copied from interface:Block.BuilderAppends a null value to the block.- Specified by:
appendNullin interfaceBlock.Builder- Specified by:
appendNullin interfaceBlockLoader.Builder
-
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
-
estimatedBytes
public long estimatedBytes()Description copied from interface:Block.BuilderAn estimate of the number of bytes theBlockcreated byBlock.Builder.build()will use. This may overestimate the size but shouldn't underestimate it.- Specified by:
estimatedBytesin interfaceBlock.Builder- Overrides:
estimatedBytesin classAbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder<TDigestBlock>
-
doBuild
- Specified by:
doBuildin classAbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder<TDigestBlock>
-
minima
- Specified by:
minimain interfaceBlockLoader.TDigestBuilder
-
maxima
- Specified by:
maximain interfaceBlockLoader.TDigestBuilder
-
sums
- Specified by:
sumsin interfaceBlockLoader.TDigestBuilder
-
valueCounts
- Specified by:
valueCountsin interfaceBlockLoader.TDigestBuilder
-
encodedDigests
- Specified by:
encodedDigestsin interfaceBlockLoader.TDigestBuilder
-
extraClose
protected void extraClose()Description copied from class:AbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilderCalled whenAbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder.close()was invoked.- Overrides:
extraClosein classAbstractDelegatingCompoundBlock.AbstractCompositeBlockBuilder<TDigestBlock>
-
appendTDigest
- Specified by:
appendTDigestin interfaceTDigestBlock.Builder
-
deserializeAndAppend
-