@Internal 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
dictionary, 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 |
setBoolean(int i,
boolean value)
Set boolean at rowId with the provided value.
|
fillWithNulls, getLen, isNullAt, reset, setNullAt, setNulls
hasDictionary, setDictionary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fillWithNulls, hasDictionary, reset, setDictionary, setNullAt, setNulls
isNullAt
public HeapIntVector reserveDictionaryIds(int capacity)
WritableColumnVector
WritableIntVector
should be equal to or bigger than capacity. DictionaryIds must inconsistent with WritableColumnVector.setDictionary(org.apache.flink.table.data.columnar.vector.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 fill(boolean value)
WritableBooleanVector
fill
in interface WritableBooleanVector
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.