@Internal public class HeapLongVector extends AbstractHeapVector implements WritableLongVector
Modifier and Type | Field and Description |
---|---|
long[] |
vector |
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFE
dictionary, noNulls
Constructor and Description |
---|
HeapLongVector(int len)
Don't use this except for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
fill(long value)
Fill the column vector with the provided value.
|
long |
getLong(int i) |
void |
setLong(int i,
long value)
Set long at rowId with the provided value.
|
void |
setLongsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
Set longs from binary, need use UNSAFE to copy.
|
fillWithNulls, getDictionaryIds, getLen, isNullAt, reserveDictionaryIds, reset, setNullAt, setNulls
hasDictionary, setDictionary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fillWithNulls, getDictionaryIds, hasDictionary, reserveDictionaryIds, reset, setDictionary, setNullAt, setNulls
isNullAt
public HeapLongVector(int len)
len
- the number of rowspublic long getLong(int i)
getLong
in interface LongColumnVector
public void setLong(int i, long value)
WritableLongVector
setLong
in interface WritableLongVector
public void setLongsFromBinary(int rowId, int count, byte[] src, int srcIndex)
WritableLongVector
setLongsFromBinary
in interface WritableLongVector
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.public void fill(long value)
WritableLongVector
fill
in interface WritableLongVector
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.