OnHeapColumnVector[] allocateColumns(int capacity, StructType schema) (1)
OnHeapColumnVector[] allocateColumns(int capacity, StructField[] fields)
OnHeapColumnVector
OnHeapColumnVector
is a concrete WritableColumnVector that…FIXME
OnHeapColumnVector
is created when:
-
OnHeapColumnVector
is requested to allocate column vectors and reserveNewColumn -
OrcColumnarBatchReader
is requested toinitBatch
Allocating Column Vectors — allocateColumns
Static Method
-
Simply converts
StructType
toStructField[]
and calls the otherallocateColumns
allocateColumns
creates an array of OnHeapColumnVector
for every field (to hold capacity
number of elements of the data type per field).
Note
|
|
Creating OnHeapColumnVector Instance
OnHeapColumnVector
takes the following when created:
-
Data type of the elements stored
When created, OnHeapColumnVector
reserveInternal (for the given capacity) and reset.
reserveInternal
Method
void reserveInternal(int newCapacity)
Note
|
reserveInternal is part of WritableColumnVector Contract to…FIXME.
|
reserveInternal
…FIXME
reserveNewColumn
Method
OnHeapColumnVector reserveNewColumn(int capacity, DataType type)
Note
|
reserveNewColumn is part of WritableColumnVector Contract to…FIXME.
|
reserveNewColumn
…FIXME