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
@Internal public abstract class AbstractHeapVector extends AbstractWritableVector
Heap vector that nullable shared structure.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
BYTE_ARRAY_OFFSET
protected HeapIntVector
dictionaryIds
Reusable column for ids of dictionary.static int
DOUBLE_ARRAY_OFFSET
static int
FLOAT_ARRAY_OFFSET
static int
INT_ARRAY_OFFSET
protected boolean[]
isNull
static boolean
LITTLE_ENDIAN
static int
LONG_ARRAY_OFFSET
static sun.misc.Unsafe
UNSAFE
-
Fields inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
dictionary, noNulls
-
-
Constructor Summary
Constructors Constructor Description AbstractHeapVector(int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillWithNulls()
Fill the column vector with nulls.HeapIntVector
getDictionaryIds()
Returns the underlying integer column for ids of dictionary.int
getLen()
boolean
isNullAt(int i)
HeapIntVector
reserveDictionaryIds(int capacity)
Reserve a integer column for ids of dictionary.void
reset()
Resets the column to default state. - fills the isNull array with false. - sets noNulls to true.void
setNullAt(int i)
Set null at rowId.void
setNulls(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 Detail
-
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
protected HeapIntVector dictionaryIds
Reusable column for ids of dictionary.
-
-
Method Detail
-
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:WritableColumnVector
Set null at rowId.
-
setNulls
public void setNulls(int i, int count)
Description copied from interface:WritableColumnVector
Set nulls from rowId to rowId + count (exclude).
-
fillWithNulls
public void fillWithNulls()
Description copied from interface:WritableColumnVector
Fill the column vector with nulls.
-
isNullAt
public boolean isNullAt(int i)
-
reserveDictionaryIds
public HeapIntVector reserveDictionaryIds(int capacity)
Description copied from interface:WritableColumnVector
Reserve a integer column for ids of dictionary. The size of returnWritableIntVector
should 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
public HeapIntVector getDictionaryIds()
Returns the underlying integer column for ids of dictionary.
-
getLen
public int getLen()
-
-