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
1 2 3 4 5 6 |
OnHeapColumnVector[] allocateColumns(int capacity, StructType schema) (1) OnHeapColumnVector[] allocateColumns(int capacity, StructField[] fields) |
-
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
1 2 3 4 5 |
void reserveInternal(int newCapacity) |
Note
|
reserveInternal is part of WritableColumnVector Contract to…FIXME.
|
reserveInternal
…FIXME
reserveNewColumn
Method
1 2 3 4 5 |
OnHeapColumnVector reserveNewColumn(int capacity, DataType type) |
Note
|
reserveNewColumn is part of WritableColumnVector Contract to…FIXME.
|
reserveNewColumn
…FIXME