public class HeapFloatVector extends AbstractHeapVector implements WritableFloatVector
| Modifier and Type | Field and Description |
|---|---|
float[] |
vector |
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFEcapacity, dictionary, elementsAppended, isAllNull, noNulls| Constructor and Description |
|---|
HeapFloatVector(int len)
Don't use this except for testing purposes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fill(float value)
Fill the column vector with the provided value.
|
float |
getFloat(int i) |
void |
reset()
Resets the column to default state.
|
void |
setFloat(int i,
float value)
Set float at rowId with the provided value.
|
void |
setFloatsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
Set floats from binary, need use UNSAFE to copy.
|
fillWithNulls, getDictionaryIds, isNullAt, reserveDictionaryIds, reserveInternal, setNullAt, setNullsaddElementsAppended, getCapacity, getElementsAppended, hasDictionary, isAllNull, reserve, setAllNull, setDictionaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddElementsAppended, fillWithNulls, getDictionaryIds, getElementsAppended, hasDictionary, isAllNull, reserve, reserveAdditional, reserveDictionaryIds, setAllNull, setDictionary, setNullAt, setNullsgetCapacity, getChildren, isNullAtgetCapacitypublic HeapFloatVector(int len)
len - the number of rowspublic float getFloat(int i)
getFloat in interface FloatColumnVectorpublic void setFloat(int i,
float value)
WritableFloatVectorsetFloat in interface WritableFloatVectorpublic void setFloatsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
WritableFloatVectorsetFloatsFromBinary in interface WritableFloatVectorrowId - set start rowId.count - count for float, so the bytes size is count * 4.src - source binary.srcIndex - source binary index, it is the index for byte index.public void fill(float value)
WritableFloatVectorfill in interface WritableFloatVectorpublic void reset()
AbstractHeapVectorreset in interface WritableColumnVectorreset in class AbstractHeapVectorCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.