Interface WritableColumnVector
- All Superinterfaces:
ColumnVector
- All Known Subinterfaces:
WritableBooleanVector,WritableBytesVector,WritableByteVector,WritableDoubleVector,WritableFloatVector,WritableIntVector,WritableLongVector,WritableShortVector,WritableTimestampVector
- All Known Implementing Classes:
AbstractHeapVector,AbstractWritableVector,HeapArrayVector,HeapBooleanVector,HeapBytesVector,HeapByteVector,HeapDoubleVector,HeapFloatVector,HeapIntVector,HeapLongVector,HeapMapVector,HeapRowVector,HeapShortVector,HeapTimestampVector
Writable
ColumnVector.-
Method Summary
Modifier and TypeMethodDescriptionvoidFill the column vector with nulls.Get reserved dictionary ids.booleanCheck if there's a dictionary.reserveDictionaryIds(int capacity) Reserve a integer column for ids of dictionary.voidreset()Resets the column to default state.voidsetDictionary(Dictionary dictionary) Set the dictionary, it should work with dictionary ids.voidsetNullAt(int rowId) Set null at rowId.voidsetNulls(int rowId, int count) Set nulls from rowId to rowId + count (exclude).Methods inherited from interface org.apache.flink.table.data.columnar.vector.ColumnVector
isNullAt
-
Method Details
-
reset
void reset()Resets the column to default state. -
setNullAt
void setNullAt(int rowId) Set null at rowId. -
setNulls
void setNulls(int rowId, int count) Set nulls from rowId to rowId + count (exclude). -
fillWithNulls
void fillWithNulls()Fill the column vector with nulls. -
setDictionary
Set the dictionary, it should work with dictionary ids. -
hasDictionary
boolean hasDictionary()Check if there's a dictionary. -
reserveDictionaryIds
Reserve a integer column for ids of dictionary. The size of returnWritableIntVectorshould be equal to or bigger than capacity. DictionaryIds must inconsistent withsetDictionary(org.apache.flink.table.data.columnar.vector.Dictionary). We don't support a mix of dictionary. -
getDictionaryIds
WritableIntVector getDictionaryIds()Get reserved dictionary ids.
-