ColumnVector Contract — In-Memory Columnar Data

ColumnVector is the contract of in-memory columnar data (of a DataType).

Table 1. ColumnVector Contract (Abstract Methods Only)
Method Description

getArray

ColumnarArray getArray(int rowId)

Used when…​FIXME

getBinary

byte[] getBinary(int rowId)

Used when…​FIXME

getBoolean

boolean getBoolean(int rowId)

Used when…​FIXME

getByte

byte getByte(int rowId)

Used when…​FIXME

getChild

ColumnVector getChild(int ordinal)

Used when…​FIXME

getDecimal

Decimal getDecimal(
  int rowId,
  int precision,
  int scale)

Used when…​FIXME

getDouble

double getDouble(int rowId)

Used when…​FIXME

getFloat

float getFloat(int rowId)

Used when…​FIXME

getInt

int getInt(int rowId)

Used when…​FIXME

getLong

long getLong(int rowId)

Used when…​FIXME

getMap

ColumnarMap getMap(int ordinal)

Used when…​FIXME

getShort

short getShort(int rowId)

Used when…​FIXME

getUTF8String

UTF8String getUTF8String(int rowId)

Used when…​FIXME

hasNull

boolean hasNull()

Used when OffHeapColumnVector and OnHeapColumnVector are requested to putNotNulls

isNullAt

boolean isNullAt(int rowId)

Used in many places

numNulls

int numNulls()

Used for testing purposes only

Table 2. ColumnVectors (Direct Implementations and Extensions)
ColumnVector Description

ArrowColumnVector

OrcColumnVector

WritableColumnVector

Writable column vectors with off-heap and on-heap memory variants

ColumnVector takes a DataType of the column to be created.

Note
ColumnVector is a Java abstract class and cannot be created directly. It is created indirectly for the concrete ColumnVectors.
Note

ColumnVector is an Evolving contract that is evolving towards becoming a stable API, but is not a stable API yet and can change from one feature release to another release.

In other words, using the contract is as treading on thin ice.

getInterval Final Method

CalendarInterval getInterval(int rowId)

getInterval…​FIXME

Note
getInterval is used when…​FIXME

getStruct Final Method

ColumnarRow getStruct(int rowId)

getStruct…​FIXME

Note
getStruct is used when…​FIXME

results matching ""

    No results matching ""