public class DecimalColumnVector extends ColumnVector
ColumnVector.Type| Modifier and Type | Field and Description |
|---|---|
short |
precision |
short |
scale |
HiveDecimalWritable[] |
vector
A vector of HiveDecimalWritable objects.
|
isNull, isRepeating, noNulls, type| Constructor and Description |
|---|
DecimalColumnVector(int precision,
int scale) |
DecimalColumnVector(int size,
int precision,
int scale) |
| Modifier and Type | Method and Description |
|---|---|
void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
ColumnVector outputColVector) |
void |
ensureSize(int size,
boolean preserveData)
Ensure the ColumnVector can hold at least size values.
|
void |
fill(HiveDecimal value) |
void |
flatten(boolean selectedInUse,
int[] sel,
int size) |
void |
set(int elementNum,
HiveDecimal hiveDec)
Set a decimal from a HiveDecimal.
|
void |
set(int elementNum,
HiveDecimalWritable writable)
Set a Decimal64 field from a HiveDecimalWritable.
|
void |
setElement(int outputElementNum,
int inputElementNum,
ColumnVector inputColVector)
Set the element in this column vector from the given input vector.
|
void |
setNullDataValue(int elementNum) |
void |
shallowCopyTo(ColumnVector otherCv)
Shallow copy of the contents of this vector to the other vector;
replaces other vector's values.
|
void |
stringifyValue(StringBuilder buffer,
int row)
Print the value for this column into the given string builder.
|
flattenNoNulls, flattenPush, flattenRepeatingNulls, init, reset, setRepeating, unFlattenpublic HiveDecimalWritable[] vector
public short scale
public short precision
public DecimalColumnVector(int precision,
int scale)
public DecimalColumnVector(int size,
int precision,
int scale)
public void fill(HiveDecimal value)
public void flatten(boolean selectedInUse,
int[] sel,
int size)
flatten in class ColumnVectorpublic void setElement(int outputElementNum,
int inputElementNum,
ColumnVector inputColVector)
setElement in class ColumnVectorpublic void stringifyValue(StringBuilder buffer, int row)
ColumnVectorstringifyValue in class ColumnVectorbuffer - the buffer to print intorow - the id of the row to printpublic void set(int elementNum,
HiveDecimalWritable writable)
elementNum - writable - public void set(int elementNum,
HiveDecimal hiveDec)
elementNum - hiveDec - public void setNullDataValue(int elementNum)
public void ensureSize(int size,
boolean preserveData)
ColumnVectorensureSize in class ColumnVectorsize - the new minimum sizepreserveData - should the old data be preserved?public void shallowCopyTo(ColumnVector otherCv)
ColumnVectorshallowCopyTo in class ColumnVectorpublic void copySelected(boolean selectedInUse,
int[] sel,
int size,
ColumnVector outputColVector)
copySelected in class ColumnVectorCopyright © 2020 The Apache Software Foundation. All rights reserved.