Skip to content

WritableColumnVector

WritableColumnVector is an extension of the ColumnVector abstraction for writable in-memory columnar vectors.

WritableColumnVector is used to allocate ColumnVectors for VectorizedParquetRecordReader.

Contract (Subset)

reserveInternal

void reserveInternal(
  int capacity)

Used when:

reserveNewColumn

WritableColumnVector reserveNewColumn(
  int capacity,
  DataType type)

Used when:

Implementations

Creating Instance

WritableColumnVector takes the following to be created:

  • Capacity (number of rows to hold in a vector)
  • Data type of the rows stored

Abstract Class

WritableColumnVector is an abstract class and cannot be created directly. It is created indirectly for the concrete WritableColumnVectors.

reserveAdditional

void reserveAdditional(
  int additionalCapacity)

reserveAdditional...FIXME


reserveAdditional is used when:

  • VectorizedRleValuesReader is requested to readValues

reserveDictionaryIds

WritableColumnVector reserveDictionaryIds(
  int capacity)

reserveDictionaryIds...FIXME


reserveDictionaryIds is used when:

  • VectorizedColumnReader is requested to readBatch
  • DictionaryEncoding.Decoder is requested to decompress

reserve

void reserve(
  int requiredCapacity)

reserve...FIXME


reserve is used when:

reset

void reset()

reset does nothing (noop) when either isConstant or isAllNull is enabled.

reset...FIXME


reset is used when: