public class HeapIntVector extends AbstractHeapVector implements WritableIntVector
| Modifier and Type | Field and Description |
|---|---|
int[] |
vector |
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFEdictionary, noNulls| Constructor and Description |
|---|
HeapIntVector(int len)
Don't use this except for testing purposes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fill(int value)
Fill the column vector with the provided value.
|
int |
getInt(int i) |
void |
setInt(int i,
int value)
Set int at rowId with the provided value.
|
void |
setInts(int rowId,
int count,
int value)
Sets value to [rowId, rowId + count) by the value, this is data that repeats continuously.
|
void |
setInts(int rowId,
int count,
int[] src,
int srcIndex)
Sets values from [src[srcIndex], src[srcIndex + count]) to [rowId, rowId + count).
|
void |
setIntsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
Set ints from binary, need use UNSAFE to copy.
|
fillWithNulls, getDictionaryIds, getLen, isNullAt, reserveDictionaryIds, reset, setNullAt, setNullshasDictionary, setDictionaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfillWithNulls, getDictionaryIds, hasDictionary, reserveDictionaryIds, reset, setDictionary, setNullAt, setNullsisNullAtpublic HeapIntVector(int len)
len - the number of rowspublic int getInt(int i)
getInt in interface IntColumnVectorpublic void setInt(int i,
int value)
WritableIntVectorsetInt in interface WritableIntVectorpublic void setIntsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
WritableIntVectorsetIntsFromBinary in interface WritableIntVectorrowId - set start rowId.count - count for int, so the bytes size is count * 4.src - source binary.srcIndex - source binary index, it is the index for byte index.public void setInts(int rowId,
int count,
int value)
WritableIntVectorsetInts in interface WritableIntVectorpublic void setInts(int rowId,
int count,
int[] src,
int srcIndex)
WritableIntVectorsetInts in interface WritableIntVectorpublic void fill(int value)
WritableIntVectorfill in interface WritableIntVectorCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.