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, UNSAFEcapacity, 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, setNullsaddElementsAppended, getCapacity, getElementsAppended, hasDictionary, isAllNull, reserve, setAllNull, setDictionaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddElementsAppended, fillWithNulls, getElementsAppended, hasDictionary, isAllNull, reserve, reserveAdditional, setAllNull, setDictionary, setNullAt, setNullsgetCapacity, getChildren, isNullAtgetCapacitypublic 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 WritableColumnVectorreserveDictionaryIds in class AbstractHeapVectorpublic HeapIntVector getDictionaryIds()
AbstractHeapVectorgetDictionaryIds in interface WritableColumnVectorgetDictionaryIds in class AbstractHeapVectorpublic boolean getBoolean(int i)
getBoolean in interface BooleanColumnVectorpublic void setBoolean(int i,
boolean value)
WritableBooleanVectorsetBoolean in interface WritableBooleanVectorpublic void setBooleans(int rowId,
int count,
boolean value)
setBooleans in interface WritableBooleanVectorpublic void setBooleans(int rowId,
int count,
byte src,
int srcIndex)
setBooleans in interface WritableBooleanVectorpublic void setBooleans(int rowId,
byte src)
setBooleans in interface WritableBooleanVectorpublic void fill(boolean value)
WritableBooleanVectorfill in interface WritableBooleanVectorpublic void reset()
AbstractHeapVectorreset in interface WritableColumnVectorreset in class AbstractHeapVectorCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.