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:
-
Field Summary
FieldsFields 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, UNSAFEFields inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
dictionary, noNulls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfill(boolean value) Fill the column vector with the provided value.booleangetBoolean(int i) Returns the underlying integer column for ids of dictionary.reserveDictionaryIds(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, setNullsMethods inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
hasDictionary, setDictionaryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.table.data.columnar.vector.ColumnVector
isNullAtMethods inherited from interface org.apache.flink.table.data.columnar.vector.writable.WritableColumnVector
fillWithNulls, hasDictionary, reset, setDictionary, setNullAt, setNulls
-
Field Details
-
vector
public boolean[] vector
-
-
Constructor Details
-
HeapBooleanVector
public HeapBooleanVector(int len)
-
-
Method Details
-
reserveDictionaryIds
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
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
-