Class AbstractHeapVector
java.lang.Object
org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
- All Implemented Interfaces:
Serializable,ColumnVector,WritableColumnVector
- Direct Known Subclasses:
HeapArrayVector,HeapBooleanVector,HeapBytesVector,HeapByteVector,HeapDoubleVector,HeapFloatVector,HeapIntVector,HeapLongVector,HeapMapVector,HeapRowVector,HeapShortVector,HeapTimestampVector
Heap vector that nullable shared structure.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected HeapIntVectorReusable column for ids of dictionary.static final intstatic final intstatic final intprotected boolean[]static final booleanstatic final intstatic final sun.misc.UnsafeFields inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
dictionary, noNulls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFill the column vector with nulls.Returns the underlying integer column for ids of dictionary.intgetLen()booleanisNullAt(int i) reserveDictionaryIds(int capacity) Reserve a integer column for ids of dictionary.voidreset()Resets the column to default state. - fills the isNull array with false. - sets noNulls to true.voidsetNullAt(int i) Set null at rowId.voidsetNulls(int i, int count) Set nulls from rowId to rowId + count (exclude).Methods inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
hasDictionary, setDictionary
-
Field Details
-
LITTLE_ENDIAN
public static final boolean LITTLE_ENDIAN -
UNSAFE
public static final sun.misc.Unsafe UNSAFE -
BYTE_ARRAY_OFFSET
public static final int BYTE_ARRAY_OFFSET -
INT_ARRAY_OFFSET
public static final int INT_ARRAY_OFFSET -
LONG_ARRAY_OFFSET
public static final int LONG_ARRAY_OFFSET -
FLOAT_ARRAY_OFFSET
public static final int FLOAT_ARRAY_OFFSET -
DOUBLE_ARRAY_OFFSET
public static final int DOUBLE_ARRAY_OFFSET -
isNull
protected boolean[] isNull -
dictionaryIds
Reusable column for ids of dictionary.
-
-
Constructor Details
-
AbstractHeapVector
public AbstractHeapVector(int len)
-
-
Method Details
-
reset
public void reset()Resets the column to default state. - fills the isNull array with false. - sets noNulls to true. -
setNullAt
public void setNullAt(int i) Description copied from interface:WritableColumnVectorSet null at rowId. -
setNulls
public void setNulls(int i, int count) Description copied from interface:WritableColumnVectorSet nulls from rowId to rowId + count (exclude). -
fillWithNulls
public void fillWithNulls()Description copied from interface:WritableColumnVectorFill the column vector with nulls. -
isNullAt
public boolean isNullAt(int i) -
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. -
getDictionaryIds
Returns the underlying integer column for ids of dictionary. -
getLen
public int getLen()
-