Class HeapBooleanVector
- java.lang.Object
-
- org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
-
- org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
-
- org.apache.flink.table.data.columnar.vector.heap.HeapBooleanVector
-
- All Implemented Interfaces:
Serializable,BooleanColumnVector,ColumnVector,WritableBooleanVector,WritableColumnVector
@Internal public class HeapBooleanVector extends AbstractHeapVector implements WritableBooleanVector
This class represents a nullable heap boolean column vector.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean[]vector-
Fields inherited from class org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFE
-
Fields inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
dictionary, noNulls
-
-
Constructor Summary
Constructors Constructor Description HeapBooleanVector(int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfill(boolean value)Fill the column vector with the provided value.booleangetBoolean(int i)HeapIntVectorgetDictionaryIds()Returns the underlying integer column for ids of dictionary.HeapIntVectorreserveDictionaryIds(int capacity)Reserve a integer column for ids of dictionary.voidsetBoolean(int i, boolean value)Set boolean at rowId with the provided value.-
Methods inherited from class org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
fillWithNulls, getLen, isNullAt, reset, setNullAt, setNulls
-
Methods inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
hasDictionary, setDictionary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.data.columnar.vector.ColumnVector
isNullAt
-
Methods inherited from interface org.apache.flink.table.data.columnar.vector.writable.WritableColumnVector
fillWithNulls, hasDictionary, reset, setDictionary, setNullAt, setNulls
-
-
-
-
Method Detail
-
reserveDictionaryIds
public HeapIntVector reserveDictionaryIds(int capacity)
Description copied from interface:WritableColumnVectorReserve a integer column for ids of dictionary. The size of returnWritableIntVectorshould be equal to or bigger than capacity. DictionaryIds must inconsistent withWritableColumnVector.setDictionary(org.apache.flink.table.data.columnar.vector.Dictionary). We don't support a mix of dictionary.- Specified by:
reserveDictionaryIdsin interfaceWritableColumnVector- Overrides:
reserveDictionaryIdsin classAbstractHeapVector
-
getDictionaryIds
public HeapIntVector getDictionaryIds()
Description copied from class:AbstractHeapVectorReturns the underlying integer column for ids of dictionary.- Specified by:
getDictionaryIdsin interfaceWritableColumnVector- Overrides:
getDictionaryIdsin classAbstractHeapVector
-
getBoolean
public boolean getBoolean(int i)
- Specified by:
getBooleanin interfaceBooleanColumnVector
-
setBoolean
public void setBoolean(int i, boolean value)Description copied from interface:WritableBooleanVectorSet boolean at rowId with the provided value.- Specified by:
setBooleanin interfaceWritableBooleanVector
-
fill
public void fill(boolean value)
Description copied from interface:WritableBooleanVectorFill the column vector with the provided value.- Specified by:
fillin interfaceWritableBooleanVector
-
-