public interface WritableColumnVector extends ColumnVector
ColumnVector
.Modifier and Type | Method and Description |
---|---|
void |
addElementsAppended(int num) |
void |
fillWithNulls()
Fill the column vector with nulls.
|
WritableIntVector |
getDictionaryIds()
Get reserved dictionary ids.
|
int |
getElementsAppended() |
boolean |
hasDictionary()
Check if there's a dictionary.
|
boolean |
isAllNull()
Check if all values are null.
|
void |
reserve(int capacity) |
default void |
reserveAdditional(int additionalCapacity) |
WritableIntVector |
reserveDictionaryIds(int capacity)
Reserve a integer column for ids of dictionary.
|
void |
reset()
Resets the column to default state.
|
void |
setAllNull()
Set all values to null.
|
void |
setDictionary(Dictionary dictionary)
Set the dictionary, it should work with dictionary ids.
|
void |
setNullAt(int rowId)
Set null at rowId.
|
void |
setNulls(int rowId,
int count)
Set nulls from rowId to rowId + count (exclude).
|
getCapacity, getChildren, isNullAt
void reset()
void setNullAt(int rowId)
void setNulls(int rowId, int count)
void fillWithNulls()
void setDictionary(Dictionary dictionary)
boolean hasDictionary()
WritableIntVector reserveDictionaryIds(int capacity)
WritableIntVector
should be equal to or bigger than capacity. DictionaryIds must inconsistent with setDictionary(org.apache.paimon.data.columnar.Dictionary)
. We don't support a mix of dictionary.WritableIntVector getDictionaryIds()
void setAllNull()
boolean isAllNull()
void reserve(int capacity)
int getElementsAppended()
void addElementsAppended(int num)
default void reserveAdditional(int additionalCapacity)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.