- All Superinterfaces:
AutoCloseable,Block.Builder,BlockLoader.Builder,BlockLoader.IntBuilder,Closeable,org.elasticsearch.core.Releasable
- Enclosing interface:
IntBlock
Builder for
IntBlock-
Method Summary
Modifier and TypeMethodDescriptionappendInt(int value) Appends a int 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.Copy the values inblockatposition.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
-
appendInt
Appends a int to the current entry.- Specified by:
appendIntin interfaceBlockLoader.IntBuilder
-
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
IntBlock.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
IntBlock.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
IntBlock.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
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
IntBlock 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
-