public class HeapShortVector extends AbstractHeapVector implements WritableShortVector
Modifier and Type | Field and Description |
---|---|
short[] |
vector |
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFE
capacity, dictionary, elementsAppended, isAllNull, noNulls
Constructor and Description |
---|
HeapShortVector(int len)
Don't use this except for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
fill(short value)
Fill the column vector with the provided value.
|
short |
getShort(int i) |
void |
reset()
Resets the column to default state.
|
void |
setShort(int i,
short value)
Set short at rowId with the provided value.
|
fillWithNulls, getDictionaryIds, isNullAt, reserveDictionaryIds, reserveInternal, setNullAt, setNulls
addElementsAppended, getCapacity, getElementsAppended, hasDictionary, isAllNull, reserve, setAllNull, setDictionary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addElementsAppended, fillWithNulls, getDictionaryIds, getElementsAppended, hasDictionary, isAllNull, reserve, reserveAdditional, reserveDictionaryIds, setAllNull, setDictionary, setNullAt, setNulls
getCapacity, getChildren, isNullAt
getCapacity
public HeapShortVector(int len)
len
- the number of rowspublic short getShort(int i)
getShort
in interface ShortColumnVector
public void setShort(int i, short value)
WritableShortVector
setShort
in interface WritableShortVector
public void fill(short value)
WritableShortVector
fill
in interface WritableShortVector
public void reset()
AbstractHeapVector
reset
in interface WritableColumnVector
reset
in class AbstractHeapVector
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.