public interface WritableIntVector extends WritableColumnVector, IntColumnVector
IntColumnVector
.Modifier and Type | Method and Description |
---|---|
void |
fill(int value)
Fill the column vector with the provided value.
|
void |
setInt(int rowId,
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, hasDictionary, reserveDictionaryIds, reset, setDictionary, setNullAt, setNulls
getInt
isNullAt
void setInt(int rowId, int value)
void setIntsFromBinary(int rowId, int count, byte[] src, int srcIndex)
rowId
- 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.void setInts(int rowId, int count, int value)
void setInts(int rowId, int count, int[] src, int srcIndex)
void fill(int value)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.