public class HeapBytesVector extends AbstractHeapVector implements WritableBytesVector
When setting data by reference, the caller is responsible for allocating the byte arrays used to hold the data. You can also set data by value, as long as you call the initBuffer() method first. You can mix "by value" and "by reference" in the same column vector, though that use is probably not typical.
BytesColumnVector.Bytes| 限定符和类型 | 字段和说明 |
|---|---|
byte[] |
buffer
buffer to use when actually copying in data.
|
int[] |
length
The length of each field.
|
int[] |
start
start offset of each field.
|
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFEdictionary, noNulls| 构造器和说明 |
|---|
HeapBytesVector(int size)
Don't call this constructor except for testing purposes.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendBytes(int elementNum,
byte[] sourceBuf,
int start,
int length)
Append byte[] at rowId with the provided value.
|
void |
fill(byte[] value)
Fill the column vector with the provided value.
|
BytesColumnVector.Bytes |
getBytes(int i) |
void |
reset()
Resets the column to default state
|
fillWithNulls, getDictionaryIds, isNullAt, reserveDictionaryIds, setNullAt, setNullshasDictionary, setDictionaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfillWithNulls, getDictionaryIds, hasDictionary, reserveDictionaryIds, setDictionary, setNullAt, setNullsisNullAtpublic int[] start
public int[] length
public byte[] buffer
public HeapBytesVector(int size)
size - number of elements in the column vectorpublic void reset()
AbstractHeapVectorreset 在接口中 WritableColumnVectorreset 在类中 AbstractHeapVectorpublic void appendBytes(int elementNum,
byte[] sourceBuf,
int start,
int length)
WritableBytesVectorappendBytes 在接口中 WritableBytesVectorpublic void fill(byte[] value)
WritableBytesVectorfill 在接口中 WritableBytesVectorpublic BytesColumnVector.Bytes getBytes(int i)
getBytes 在接口中 BytesColumnVectorCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.