public class ParquetDecimalVector extends Object implements DecimalColumnVector, WritableLongVector, WritableIntVector, WritableBytesVector
DecimalColumnVector interface.BytesColumnVector.Bytes| Constructor and Description |
|---|
ParquetDecimalVector(ColumnVector vector) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendBytes(int rowId,
byte[] value,
int offset,
int length)
Append byte[] at rowId with the provided value.
|
void |
fill(byte[] value)
Fill the column vector with the provided value.
|
void |
fill(int value)
Fill the column vector with the provided value.
|
void |
fill(long value)
Fill the column vector with the provided value.
|
void |
fillWithNulls()
Fill the column vector with nulls.
|
BytesColumnVector.Bytes |
getBytes(int i) |
Decimal |
getDecimal(int i,
int precision,
int scale) |
WritableIntVector |
getDictionaryIds()
Get reserved dictionary ids.
|
int |
getInt(int i) |
long |
getLong(int i) |
ColumnVector |
getVector() |
boolean |
hasDictionary()
Check if there's a dictionary.
|
boolean |
isNullAt(int i) |
WritableIntVector |
reserveDictionaryIds(int capacity)
Reserve a integer column for ids of dictionary.
|
void |
reset()
Resets the column to default state.
|
void |
setDictionary(Dictionary dictionary)
Set the dictionary, it should work with dictionary ids.
|
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.
|
void |
setLong(int rowId,
long value)
Set long at rowId with the provided value.
|
void |
setLongsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
Set longs from binary, need use UNSAFE to copy.
|
void |
setNullAt(int rowId)
Set null at rowId.
|
void |
setNulls(int rowId,
int count)
Set nulls from rowId to rowId + count (exclude).
|
public ParquetDecimalVector(ColumnVector vector)
public Decimal getDecimal(int i, int precision, int scale)
getDecimal in interface DecimalColumnVectorpublic ColumnVector getVector()
public boolean isNullAt(int i)
isNullAt in interface ColumnVectorpublic void reset()
WritableColumnVectorreset in interface WritableColumnVectorpublic void setNullAt(int rowId)
WritableColumnVectorsetNullAt in interface WritableColumnVectorpublic void setNulls(int rowId,
int count)
WritableColumnVectorsetNulls in interface WritableColumnVectorpublic void fillWithNulls()
WritableColumnVectorfillWithNulls in interface WritableColumnVectorpublic void setDictionary(Dictionary dictionary)
WritableColumnVectorsetDictionary in interface WritableColumnVectorpublic boolean hasDictionary()
WritableColumnVectorhasDictionary in interface WritableColumnVectorpublic WritableIntVector reserveDictionaryIds(int capacity)
WritableColumnVectorWritableIntVector
should be equal to or bigger than capacity. DictionaryIds must inconsistent with WritableColumnVector.setDictionary(org.apache.paimon.data.columnar.Dictionary). We don't support a mix of dictionary.reserveDictionaryIds in interface WritableColumnVectorpublic WritableIntVector getDictionaryIds()
WritableColumnVectorgetDictionaryIds in interface WritableColumnVectorpublic BytesColumnVector.Bytes getBytes(int i)
getBytes in interface BytesColumnVectorpublic void appendBytes(int rowId,
byte[] value,
int offset,
int length)
WritableBytesVectorappendBytes in interface WritableBytesVectorpublic void fill(byte[] value)
WritableBytesVectorfill in interface WritableBytesVectorpublic int getInt(int i)
getInt in interface IntColumnVectorpublic void setInt(int rowId,
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 WritableIntVectorpublic long getLong(int i)
getLong in interface LongColumnVectorpublic void setLong(int rowId,
long value)
WritableLongVectorsetLong in interface WritableLongVectorpublic void setLongsFromBinary(int rowId,
int count,
byte[] src,
int srcIndex)
WritableLongVectorsetLongsFromBinary in interface WritableLongVectorrowId - set start rowId.count - count for long, so the bytes size is count * 8.src - source binary.srcIndex - source binary index, it is the index for byte index.public void fill(long value)
WritableLongVectorfill in interface WritableLongVectorCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.