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
Constructor and Description |
---|
DecimalColumnVector(int precision,
int scale) |
DecimalColumnVector(int size,
int precision,
int scale) |
Modifier and Type | Method and Description |
---|---|
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) |
void |
set(int elementNum,
HiveDecimalWritable writeable) |
void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector.
|
void |
setNullDataValue(int elementNum) |
void |
stringifyValue(StringBuilder buffer,
int row)
Print the value for this column into the given string builder.
|
flattenNoNulls, flattenPush, flattenRepeatingNulls, 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 outElementNum, int inputElementNum, ColumnVector inputVector)
ColumnVector
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 writeable)
public void set(int elementNum, HiveDecimal 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?Copyright © 2016 The Apache Software Foundation. All rights reserved.