@Internal public class HeapDoubleVector extends AbstractHeapVector implements WritableDoubleVector
Modifier and Type | Field and Description |
---|---|
double[] |
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 |
---|
HeapDoubleVector(int len)
Don't use this except for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
fill(double value)
Fill the column vector with the provided value.
|
double |
getDouble(int i) |
void |
setDouble(int i,
double value)
Set double at rowId with the provided value.
|
void |
setDoublesFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
Set doubles 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 HeapDoubleVector(int len)
len
- the number of rowspublic double getDouble(int i)
getDouble
in interface DoubleColumnVector
public void setDouble(int i, double value)
WritableDoubleVector
setDouble
in interface WritableDoubleVector
public void setDoublesFromBinary(int rowId, int count, byte[] src, int srcIndex)
WritableDoubleVector
setDoublesFromBinary
in interface WritableDoubleVector
rowId
- set start rowId.count
- count for double, so the bytes size is count * 8.src
- source binary.srcIndex
- source binary index, it is the index for byte index.public void fill(double value)
WritableDoubleVector
fill
in interface WritableDoubleVector
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.