public class HeapBooleanVector extends AbstractHeapVector implements WritableBooleanVector
Modifier and Type | Field and Description |
---|---|
boolean[] |
vector |
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFE
capacity, dictionary, elementsAppended, isAllNull, noNulls
Constructor and Description |
---|
HeapBooleanVector(int len) |
Modifier and Type | Method and Description |
---|---|
void |
fill(boolean value)
Fill the column vector with the provided value.
|
boolean |
getBoolean(int i) |
HeapIntVector |
getDictionaryIds()
Returns the underlying integer column for ids of dictionary.
|
HeapIntVector |
reserveDictionaryIds(int capacity)
Reserve a integer column for ids of dictionary.
|
void |
reset()
Resets the column to default state.
|
void |
setBoolean(int i,
boolean value)
Set boolean at rowId with the provided value.
|
void |
setBooleans(int rowId,
byte src) |
void |
setBooleans(int rowId,
int count,
boolean value) |
void |
setBooleans(int rowId,
int count,
byte src,
int srcIndex) |
fillWithNulls, isNullAt, reserveInternal, setNullAt, setNulls
addElementsAppended, getCapacity, getElementsAppended, hasDictionary, isAllNull, reserve, setAllNull, setDictionary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addElementsAppended, fillWithNulls, getElementsAppended, hasDictionary, isAllNull, reserve, reserveAdditional, setAllNull, setDictionary, setNullAt, setNulls
getCapacity, getChildren, isNullAt
getCapacity
public HeapIntVector reserveDictionaryIds(int capacity)
WritableColumnVector
WritableIntVector
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 WritableColumnVector
reserveDictionaryIds
in class AbstractHeapVector
public HeapIntVector getDictionaryIds()
AbstractHeapVector
getDictionaryIds
in interface WritableColumnVector
getDictionaryIds
in class AbstractHeapVector
public boolean getBoolean(int i)
getBoolean
in interface BooleanColumnVector
public void setBoolean(int i, boolean value)
WritableBooleanVector
setBoolean
in interface WritableBooleanVector
public void setBooleans(int rowId, int count, boolean value)
setBooleans
in interface WritableBooleanVector
public void setBooleans(int rowId, int count, byte src, int srcIndex)
setBooleans
in interface WritableBooleanVector
public void setBooleans(int rowId, byte src)
setBooleans
in interface WritableBooleanVector
public void fill(boolean value)
WritableBooleanVector
fill
in interface WritableBooleanVector
public void reset()
AbstractHeapVector
reset
in interface WritableColumnVector
reset
in class AbstractHeapVector
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.