Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Class DoubleVectorFixedBuilder
java.lang.Object
org.elasticsearch.compute.data.DoubleVectorFixedBuilder
- All Implemented Interfaces:
Closeable,AutoCloseable,DoubleVector.Builder,DoubleVector.FixedBuilder,Vector.Builder,org.elasticsearch.core.Releasable
Builder for
DoubleVectors that never grows. Prefer this to
DoubleVectorBuilder 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 TypeMethodDescriptionappendDouble(double value) Appends a double to the current entry.appendDouble(int idx, double value) build()Builds the block.voidclose()longAn estimate of the number of bytes theVectorcreated byVector.Builder.build()will use.boolean
-
Method Details
-
appendDouble
Description copied from interface:DoubleVector.FixedBuilderAppends a double to the current entry.- Specified by:
appendDoublein interfaceDoubleVector.Builder- Specified by:
appendDoublein interfaceDoubleVector.FixedBuilder
-
appendDouble
- Specified by:
appendDoublein interfaceDoubleVector.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 interfaceDoubleVector.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()
-