WritableColumnVector Contract

WritableColumnVector is the extension of the ColumnVector contract for writable column vectors that FIXME.

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

getArrayLength

int getArrayLength(int rowId)

Used when…​FIXME

getArrayOffset

int getArrayOffset(int rowId)

Used when…​FIXME

getBytesAsUTF8String

UTF8String getBytesAsUTF8String(
  int rowId,
  int count)

Used when…​FIXME

getDictId

int getDictId(int rowId)

Used when…​FIXME

putArray

void putArray(
  int rowId,
  int offset,
  int length)

Used when…​FIXME

putBoolean

void putBoolean(
  int rowId,
  boolean value)

Used when…​FIXME

putBooleans

void putBooleans(
  int rowId,
  int count,
  boolean value)

Used when…​FIXME

putByte

void putByte(
  int rowId,
  byte value)

Used when…​FIXME

putByteArray

int putByteArray(
  int rowId,
  byte[] value,
  int offset,
  int count)

Used when…​FIXME

putBytes

void putBytes(
  int rowId,
  int count,
  byte value)
void putBytes(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)

Used when…​FIXME

putDouble

void putDouble(
  int rowId,
  double value)

Used when…​FIXME

putDoubles

void putDoubles(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)
void putDoubles(
  int rowId,
  int count,
  double value)
void putDoubles(
  int rowId,
  int count,
  double[] src,
  int srcIndex)

Used when…​FIXME

putFloat

void putFloat(
  int rowId,
  float value)

Used when…​FIXME

putFloats

void putFloats(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)
void putFloats(
  int rowId,
  int count,
  float value)
void putFloats(
  int rowId,
  int count,
  float[] src,
  int srcIndex)

Used when…​FIXME

putInt

void putInt(
  int rowId,
  int value)

Used when…​FIXME

putInts

void putInts(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)
void putInts(
  int rowId,
  int count,
  int value)
void putInts(
  int rowId,
  int count,
  int[] src,
  int srcIndex)

Used when…​FIXME

putIntsLittleEndian

void putIntsLittleEndian(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)

Used when…​FIXME

putLong

void putLong(
  int rowId,
  long value)

Used when…​FIXME

putLongs

void putLongs(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)
void putLongs(
  int rowId,
  int count,
  long value)
void putLongs(
  int rowId,
  int count,
  long[] src,
  int srcIndex)

Used when…​FIXME

putLongsLittleEndian

void putLongsLittleEndian(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)

Used when…​FIXME

putNotNull

void putNotNull(int rowId)

Used when WritableColumnVector is requested to reset and appendNotNulls

putNotNulls

void putNotNulls(
  int rowId,
  int count)

Used when…​FIXME

putNull

void putNull(int rowId)

Used when…​FIXME

putNulls

void putNulls(
  int rowId,
  int count)

Used when…​FIXME

putShort

void putShort(
  int rowId,
  short value)

Used when…​FIXME

putShorts

void putShorts(
  int rowId,
  int count,
  byte[] src,
  int srcIndex)
void putShorts(
  int rowId,
  int count,
  short value)
void putShorts(
  int rowId,
  int count,
  short[] src,
  int srcIndex)

Used when…​FIXME

reserveInternal

void reserveInternal(int capacity)

Used when:

reserveNewColumn

WritableColumnVector reserveNewColumn(
  int capacity,
  DataType type)

Used when…​FIXME

Table 2. WritableColumnVectors
WritableColumnVector Description

OffHeapColumnVector

OnHeapColumnVector

WritableColumnVector takes the following to be created:

  • Number of rows to hold in a vector (aka capacity)

  • Data type of the rows stored

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

reset Method

void reset()

reset…​FIXME

Note

reset is used when:

Reserving Memory Of Required Capacity — reserve Method

void reserve(int requiredCapacity)

reserve…​FIXME

Note

reserve is used when:

  • OrcColumnarBatchReader is requested to putRepeatingValues, putNonNullValues, putValues, and putDecimalWritables

  • WritableColumnVector is requested to append values

reserveDictionaryIds Method

WritableColumnVector reserveDictionaryIds(int capacity)

reserveDictionaryIds…​FIXME

Note
reserveDictionaryIds is used when…​FIXME

appendNotNulls Final Method

int appendNotNulls(int count)

appendNotNulls…​FIXME

Note
appendNotNulls is used for testing purposes only.

results matching ""

    No results matching ""