public class DoubleColumnVector extends ColumnVector
ColumnVector.Type
Modifier and Type | Field and Description |
---|---|
static double |
NULL_VALUE |
double[] |
vector |
isNull, isRepeating, noNulls, type
Constructor and Description |
---|
DoubleColumnVector()
Use this constructor by default.
|
DoubleColumnVector(int len)
Don't use this except for testing purposes.
|
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(double value) |
void |
fillWithNulls() |
void |
flatten(boolean selectedInUse,
int[] sel,
int size) |
void |
setElement(int outputElementNum,
int inputElementNum,
ColumnVector inputColVector)
Set the element in this column vector from the given input vector.
|
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 double[] vector
public static final double NULL_VALUE
public DoubleColumnVector()
public DoubleColumnVector(int len)
len
- public void copySelected(boolean selectedInUse, int[] sel, int size, ColumnVector outputColVector)
copySelected
in class ColumnVector
public void fill(double value)
public void fillWithNulls()
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 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
Copyright © 2021 The Apache Software Foundation. All rights reserved.