Class HeapLongVector
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.HeapLongVector
- All Implemented Interfaces:
Serializable,ColumnVector,LongColumnVector,WritableColumnVector,WritableLongVector
This class represents a nullable long 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(long value) Fill the column vector with the provided value.longgetLong(int i) voidsetLong(int i, long value) Set long at rowId with the provided value.voidsetLongsFromBinary(int rowId, int count, byte[] src, int srcIndex) Set longs 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, 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, getDictionaryIds, hasDictionary, reserveDictionaryIds, reset, setDictionary, setNullAt, setNulls
-
Field Details
-
vector
public long[] vector
-
-
Constructor Details
-
HeapLongVector
public HeapLongVector(int len) Don't use this except for testing purposes.- Parameters:
len- the number of rows
-
-
Method Details
-
getLong
public long getLong(int i) - Specified by:
getLongin interfaceLongColumnVector
-
setLong
public void setLong(int i, long value) Description copied from interface:WritableLongVectorSet long at rowId with the provided value.- Specified by:
setLongin interfaceWritableLongVector
-
setLongsFromBinary
public void setLongsFromBinary(int rowId, int count, byte[] src, int srcIndex) Description copied from interface:WritableLongVectorSet longs from binary, need use UNSAFE to copy.- Specified by:
setLongsFromBinaryin interfaceWritableLongVector- Parameters:
rowId- set start rowId.count- count for long, so the bytes size is count * 8.src- source binary.srcIndex- source binary index, it is the index for byte index.
-
fill
public void fill(long value) Description copied from interface:WritableLongVectorFill the column vector with the provided value.- Specified by:
fillin interfaceWritableLongVector
-