public abstract class AbstractHeapVector extends AbstractWritableVector implements ElementCountable
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_ARRAY_OFFSET |
protected HeapIntVector |
dictionaryIds
Reusable column for ids of dictionary.
|
static int |
DOUBLE_ARRAY_OFFSET |
static int |
FLOAT_ARRAY_OFFSET |
static int |
INT_ARRAY_OFFSET |
protected boolean[] |
isNull |
static boolean |
LITTLE_ENDIAN |
static int |
LONG_ARRAY_OFFSET |
static sun.misc.Unsafe |
UNSAFE |
capacity, dictionary, elementsAppended, isAllNull, noNulls| Constructor and Description |
|---|
AbstractHeapVector(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillWithNulls()
Fill the column vector with nulls.
|
HeapIntVector |
getDictionaryIds()
Returns the underlying integer column for ids of dictionary.
|
boolean |
isNullAt(int i) |
HeapIntVector |
reserveDictionaryIds(int capacity)
Reserve a integer column for ids of dictionary.
|
protected void |
reserveInternal(int newCapacity) |
void |
reset()
Resets the column to default state.
|
void |
setNullAt(int i)
Set null at rowId.
|
void |
setNulls(int i,
int count)
Set nulls from rowId to rowId + count (exclude).
|
addElementsAppended, getCapacity, getElementsAppended, hasDictionary, isAllNull, reserve, setAllNull, setDictionaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapacityreserveAdditionalgetChildrenpublic static final boolean LITTLE_ENDIAN
public static final sun.misc.Unsafe UNSAFE
public static final int BYTE_ARRAY_OFFSET
public static final int INT_ARRAY_OFFSET
public static final int LONG_ARRAY_OFFSET
public static final int FLOAT_ARRAY_OFFSET
public static final int DOUBLE_ARRAY_OFFSET
protected boolean[] isNull
protected HeapIntVector dictionaryIds
public void reset()
reset in interface WritableColumnVectorreset in class AbstractWritableVectorpublic void setNullAt(int i)
WritableColumnVectorsetNullAt in interface WritableColumnVectorpublic void setNulls(int i,
int count)
WritableColumnVectorsetNulls in interface WritableColumnVectorpublic void fillWithNulls()
WritableColumnVectorfillWithNulls in interface WritableColumnVectorpublic boolean isNullAt(int i)
isNullAt in interface ColumnVectorpublic HeapIntVector reserveDictionaryIds(int capacity)
WritableColumnVectorWritableIntVector
should be equal to or bigger than capacity. DictionaryIds must inconsistent with WritableColumnVector.setDictionary(org.apache.paimon.data.columnar.Dictionary). We don't support a mix of dictionary.reserveDictionaryIds in interface WritableColumnVectorpublic HeapIntVector getDictionaryIds()
getDictionaryIds in interface WritableColumnVectorprotected void reserveInternal(int newCapacity)
reserveInternal in class AbstractWritableVectorCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.