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 intBYTE_ARRAY_OFFSETprotected HeapIntVectordictionaryIdsReusable column for ids of dictionary.static intDOUBLE_ARRAY_OFFSETstatic intFLOAT_ARRAY_OFFSETstatic intINT_ARRAY_OFFSETprotected boolean[]isNullstatic booleanLITTLE_ENDIANstatic intLONG_ARRAY_OFFSETstatic sun.misc.UnsafeUNSAFE-
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 voidfillWithNulls()Fill the column vector with nulls.HeapIntVectorgetDictionaryIds()Returns the underlying integer column for ids of dictionary.intgetLen()booleanisNullAt(int i)HeapIntVectorreserveDictionaryIds(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 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: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
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.
-
getDictionaryIds
public HeapIntVector getDictionaryIds()
Returns the underlying integer column for ids of dictionary.
-
getLen
public int getLen()
-
-