Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Class LongVectorFixedBuilder
java.lang.Object
org.elasticsearch.compute.data.LongVectorFixedBuilder
- All Implemented Interfaces:
Closeable,AutoCloseable,LongVector.Builder,LongVector.FixedBuilder,Vector.Builder,org.elasticsearch.core.Releasable
Builder for
LongVectors that never grows. Prefer this to
LongVectorBuilder 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 TypeMethodDescriptionappendLong(int idx, long value) appendLong(long value) Appends a long to the current entry.build()Builds the block.voidclose()longAn estimate of the number of bytes theVectorcreated byVector.Builder.build()will use.boolean
-
Method Details
-
appendLong
Description copied from interface:LongVector.FixedBuilderAppends a long to the current entry.- Specified by:
appendLongin interfaceLongVector.Builder- Specified by:
appendLongin interfaceLongVector.FixedBuilder
-
appendLong
- Specified by:
appendLongin interfaceLongVector.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 interfaceLongVector.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()
-