java.lang.Object
org.elasticsearch.compute.data.IntVectorFixedBuilder
- All Implemented Interfaces:
Closeable,AutoCloseable,IntVector.Builder,IntVector.FixedBuilder,Vector.Builder,org.elasticsearch.core.Releasable
Builder for
IntVectors that never grows. Prefer this to
IntVectorBuilder if you know the precise size up front because
it's faster.
This class is generated. Edit X-VectorFixedBuilder.java.st instead.-
Method Details
-
appendInt
Description copied from interface:IntVector.FixedBuilderAppends a int to the current entry.- Specified by:
appendIntin interfaceIntVector.Builder- Specified by:
appendIntin interfaceIntVector.FixedBuilder
-
appendInt
- Specified by:
appendIntin interfaceIntVector.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 interfaceIntVector.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()
-