Class HeapIntVector
- 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.HeapIntVector
-
- All Implemented Interfaces:
Serializable
,ColumnVector
,IntColumnVector
,WritableColumnVector
,WritableIntVector
@Internal public class HeapIntVector extends AbstractHeapVector implements WritableIntVector
This class represents a nullable int column vector.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int[]
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 HeapIntVector(int len)
Don't use this except for testing purposes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fill(int value)
Fill the column vector with the provided value.int
getInt(int i)
void
setInt(int i, int value)
Set int at rowId with the provided value.void
setInts(int rowId, int count, int value)
Sets value to [rowId, rowId + count) by the value, this is data that repeats continuously.void
setInts(int rowId, int count, int[] src, int srcIndex)
Sets values from [src[srcIndex], src[srcIndex + count]) to [rowId, rowId + count).void
setIntsFromBinary(int rowId, int count, byte[] src, int srcIndex)
Set ints from binary, need use UNSAFE to copy.-
Methods inherited from class org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
fillWithNulls, getDictionaryIds, getLen, isNullAt, reserveDictionaryIds, 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, getDictionaryIds, hasDictionary, reserveDictionaryIds, reset, setDictionary, setNullAt, setNulls
-
-
-
-
Method Detail
-
getInt
public int getInt(int i)
- Specified by:
getInt
in interfaceIntColumnVector
-
setInt
public void setInt(int i, int value)
Description copied from interface:WritableIntVector
Set int at rowId with the provided value.- Specified by:
setInt
in interfaceWritableIntVector
-
setIntsFromBinary
public void setIntsFromBinary(int rowId, int count, byte[] src, int srcIndex)
Description copied from interface:WritableIntVector
Set ints from binary, need use UNSAFE to copy.- Specified by:
setIntsFromBinary
in interfaceWritableIntVector
- Parameters:
rowId
- set start rowId.count
- count for int, so the bytes size is count * 4.src
- source binary.srcIndex
- source binary index, it is the index for byte index.
-
setInts
public void setInts(int rowId, int count, int value)
Description copied from interface:WritableIntVector
Sets value to [rowId, rowId + count) by the value, this is data that repeats continuously.- Specified by:
setInts
in interfaceWritableIntVector
-
setInts
public void setInts(int rowId, int count, int[] src, int srcIndex)
Description copied from interface:WritableIntVector
Sets values from [src[srcIndex], src[srcIndex + count]) to [rowId, rowId + count).- Specified by:
setInts
in interfaceWritableIntVector
-
fill
public void fill(int value)
Description copied from interface:WritableIntVector
Fill the column vector with the provided value.- Specified by:
fill
in interfaceWritableIntVector
-
-