Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Interface BooleanBlock.Builder
- All Superinterfaces:
AutoCloseable,Block.Builder,BlockLoader.BooleanBuilder,BlockLoader.Builder,Closeable,org.elasticsearch.core.Releasable
- Enclosing interface:
BooleanBlock
public static sealed interface BooleanBlock.Builder
extends Block.Builder, BlockLoader.BooleanBuilder
Builder for
BooleanBlock-
Method Summary
Modifier and TypeMethodDescriptionappendBoolean(boolean value) Appends a boolean to the current entry.Appends a null value to the block.Begins a multivalued entry.build()Builds the block.Copy the values inblockfrombeginInclusivetoendExclusiveinto this builder.copyFrom(BooleanBlock block, int position) Copy the values inblockatposition.copyFrom(BooleanBlock block, int beginInclusive, int endExclusive) Copy the values inblockfrombeginInclusivetoendExclusiveinto this builder.Ends the current multi-value entry.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.Methods inherited from interface org.elasticsearch.compute.data.Block.Builder
estimatedBytesMethods inherited from interface org.elasticsearch.core.Releasable
close
-
Method Details
-
appendBoolean
Appends a boolean to the current entry.- Specified by:
appendBooleanin interfaceBlockLoader.BooleanBuilder
-
copyFrom
Copy the values inblockfrombeginInclusivetoendExclusiveinto this builder. -
copyFrom
Copy the values inblockatposition. If this position has a single value, this'll copy a single value. If this positions has many values, it'll copy all of them. If this isnull, then it'll copy thenull. -
appendNull
BooleanBlock.Builder appendNull()Description copied from interface:Block.BuilderAppends a null value to the block.- Specified by:
appendNullin interfaceBlock.Builder- Specified by:
appendNullin interfaceBlockLoader.Builder
-
beginPositionEntry
BooleanBlock.Builder beginPositionEntry()Description copied from interface:Block.BuilderBegins a multivalued entry. Calling this for the first time will put the builder into a mode that generates Blocks that returntruefromBlock.mayHaveMultivaluedFields()which can force less optimized code paths. So don't call this unless you are sure you are emitting more than one value for this position.- Specified by:
beginPositionEntryin interfaceBlock.Builder- Specified by:
beginPositionEntryin interfaceBlockLoader.Builder
-
endPositionEntry
BooleanBlock.Builder endPositionEntry()Description copied from interface:Block.BuilderEnds the current multi-value entry.- Specified by:
endPositionEntryin interfaceBlock.Builder- Specified by:
endPositionEntryin interfaceBlockLoader.Builder
-
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
-
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
BooleanBlock 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
-