Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Class FloatVectorFixedBuilder
java.lang.Object
org.elasticsearch.compute.data.FloatVectorFixedBuilder
- All Implemented Interfaces:
Closeable,AutoCloseable,FloatVector.Builder,FloatVector.FixedBuilder,Vector.Builder,org.elasticsearch.core.Releasable
Builder for
FloatVectors that never grows. Prefer this to
FloatVectorBuilder 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 TypeMethodDescriptionappendFloat(float value) Appends a float to the current entry.appendFloat(int idx, float value) build()Builds the block.voidclose()longAn estimate of the number of bytes theVectorcreated byVector.Builder.build()will use.boolean
-
Method Details
-
appendFloat
Description copied from interface:FloatVector.FixedBuilderAppends a float to the current entry.- Specified by:
appendFloatin interfaceFloatVector.Builder- Specified by:
appendFloatin interfaceFloatVector.FixedBuilder
-
appendFloat
- Specified by:
appendFloatin interfaceFloatVector.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 interfaceFloatVector.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()
-