Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Class BooleanVectorFixedBuilder
java.lang.Object
org.elasticsearch.compute.data.BooleanVectorFixedBuilder
- All Implemented Interfaces:
Closeable,AutoCloseable,BooleanVector.Builder,BooleanVector.FixedBuilder,Vector.Builder,org.elasticsearch.core.Releasable
Builder for
BooleanVectors that never grows. Prefer this to
BooleanVectorBuilder if you know the precise size up front because
it's faster.
This class is generated. Edit X-VectorFixedBuilder.java.st instead.-
Method Summary
Modifier and TypeMethodDescriptionappendBoolean(boolean value) Appends a boolean to the current entry.appendBoolean(int idx, boolean value) build()Builds the block.voidclose()longAn estimate of the number of bytes theVectorcreated byVector.Builder.build()will use.boolean
-
Method Details
-
appendBoolean
Description copied from interface:BooleanVector.FixedBuilderAppends a boolean to the current entry.- Specified by:
appendBooleanin interfaceBooleanVector.Builder- Specified by:
appendBooleanin interfaceBooleanVector.FixedBuilder
-
appendBoolean
- Specified by:
appendBooleanin interfaceBooleanVector.FixedBuilder
-
estimatedBytes
public long estimatedBytes()Description copied from interface:Vector.BuilderAn estimate of the number of bytes theVectorcreated byVector.Builder.build()will use. This may overestimate the size but shouldn't underestimate it.- Specified by:
estimatedBytesin interfaceVector.Builder
-
build
Description copied from interface:Vector.BuilderBuilds the block. This method can be called multiple times.- Specified by:
buildin interfaceBooleanVector.Builder- Specified by:
buildin interfaceVector.Builder
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
isReleased
public boolean isReleased()
-