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
@Internal public interface WritableColumnVector extends ColumnVector
WritableColumnVector.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfillWithNulls()Fill the column vector with nulls.WritableIntVectorgetDictionaryIds()Get reserved dictionary ids.booleanhasDictionary()Check if there's a dictionary.WritableIntVectorreserveDictionaryIds(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 Detail
-
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
void setDictionary(Dictionary dictionary)
Set the dictionary, it should work with dictionary ids.
-
hasDictionary
boolean hasDictionary()
Check if there's a dictionary.
-
reserveDictionaryIds
WritableIntVector reserveDictionaryIds(int capacity)
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.
-
-