Interface Vector.Builder

All Superinterfaces:
AutoCloseable, Closeable, org.elasticsearch.core.Releasable
All Known Subinterfaces:
BooleanVector.Builder, BooleanVector.FixedBuilder, BytesRefVector.Builder, DoubleVector.Builder, DoubleVector.FixedBuilder, FloatVector.Builder, FloatVector.FixedBuilder, IntVector.Builder, IntVector.FixedBuilder, LongVector.Builder, LongVector.FixedBuilder
All Known Implementing Classes:
AbstractVectorBuilder, BooleanVectorFixedBuilder, DoubleVectorFixedBuilder, FloatVectorFixedBuilder, IntVectorFixedBuilder, LongVectorFixedBuilder
Enclosing interface:
Vector

public static interface Vector.Builder extends org.elasticsearch.core.Releasable
Builds Vectors. Typically, you use one of it's direct supinterfaces like IntVector.Builder. This is Releasable and should be released after building the vector or if building the vector fails.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the block.
    long
    An estimate of the number of bytes the Vector created by build() will use.

    Methods inherited from interface org.elasticsearch.core.Releasable

    close
  • Method Details

    • estimatedBytes

      long estimatedBytes()
      An estimate of the number of bytes the Vector created by build() will use. This may overestimate the size but shouldn't underestimate it.
    • build

      Vector build()
      Builds the block. This method can be called multiple times.