public class ParquetDecimalVector extends Object implements DecimalColumnVector, WritableLongVector, WritableIntVector, WritableBytesVector, ElementCountable
DecimalColumnVector interface.BytesColumnVector.Bytes| Constructor and Description |
|---|
ParquetDecimalVector(WritableColumnVector vector) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElementsAppended(int num) |
void |
appendInt(int v) |
void |
appendInts(int count,
int v) |
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) |
int |
getCapacity() |
Decimal |
getDecimal(int i,
int precision,
int scale) |
WritableIntVector |
getDictionaryIds()
Get reserved dictionary ids.
|
int |
getElementsAppended() |
int |
getInt(int i) |
long |
getLong(int i) |
ColumnVector |
getVector() |
boolean |
hasDictionary()
Check if there's a dictionary.
|
boolean |
isAllNull()
Check if all values are null.
|
boolean |
isNullAt(int i) |
void |
putByteArray(int rowId,
byte[] value,
int offset,
int length)
Append byte[] at rowId with the provided value.
|
void |
reserve(int capacity) |
WritableIntVector |
reserveDictionaryIds(int capacity)
Reserve a integer column for ids of dictionary.
|
void |
reset()
Resets the column to default state.
|
void |
setAllNull()
Set all values to null.
|
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).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreserveAdditionalgetChildrenpublic ParquetDecimalVector(WritableColumnVector 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 int getCapacity()
getCapacity in interface ColumnVectorgetCapacity in interface ElementCountablepublic 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 void setAllNull()
WritableColumnVectorsetAllNull in interface WritableColumnVectorpublic boolean isAllNull()
WritableColumnVectorisAllNull in interface WritableColumnVectorpublic void reserve(int capacity)
reserve in interface WritableColumnVectorpublic int getElementsAppended()
getElementsAppended in interface WritableColumnVectorpublic void addElementsAppended(int num)
addElementsAppended in interface WritableColumnVectorpublic BytesColumnVector.Bytes getBytes(int i)
getBytes in interface BytesColumnVectorpublic void putByteArray(int rowId,
byte[] value,
int offset,
int length)
WritableBytesVectorputByteArray 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 void appendInt(int v)
appendInt in interface WritableIntVectorpublic void appendInts(int count,
int v)
appendInts 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–2025 The Apache Software Foundation. All rights reserved.