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.
|
decRef, flattenNoNulls, flattenPush, flattenRepeatingNulls, getRef, incRef, init, reset, setRepeating, unFlatten
public 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 ColumnVector
public void setElement(int outputElementNum, int inputElementNum, ColumnVector inputColVector)
setElement
in class ColumnVector
public void stringifyValue(StringBuilder buffer, int row)
ColumnVector
stringifyValue
in class ColumnVector
buffer
- 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)
ColumnVector
ensureSize
in class ColumnVector
size
- the new minimum sizepreserveData
- should the old data be preserved?public void shallowCopyTo(ColumnVector otherCv)
ColumnVector
shallowCopyTo
in class ColumnVector
public void copySelected(boolean selectedInUse, int[] sel, int size, ColumnVector outputColVector)
copySelected
in class ColumnVector
Copyright © 2021 The Apache Software Foundation. All rights reserved.