public class HeapIntVector extends AbstractHeapVector implements WritableIntVector
| 限定符和类型 | 字段和说明 |
|---|---|
int[] |
vector |
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFEdictionary, noNulls| 构造器和说明 |
|---|
HeapIntVector(int len)
Don't use this except for testing purposes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, 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 在接口中 IntColumnVectorpublic void setInt(int i,
int value)
WritableIntVectorsetInt 在接口中 WritableIntVectorpublic void setIntsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
WritableIntVectorsetIntsFromBinary 在接口中 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 在接口中 WritableIntVectorpublic void setInts(int rowId,
int count,
int[] src,
int srcIndex)
WritableIntVectorsetInts 在接口中 WritableIntVectorpublic void fill(int value)
WritableIntVectorfill 在接口中 WritableIntVectorCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.