public class LongColumnVector extends ColumnVector
ColumnVector.Type
Modifier and Type | Field and Description |
---|---|
static long |
NULL_VALUE |
long[] |
vector |
isNull, isRepeating, noNulls
Constructor and Description |
---|
LongColumnVector()
Use this constructor by default.
|
LongColumnVector(int len)
Don't use this except for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
DoubleColumnVector output) |
void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
LongColumnVector output) |
void |
ensureSize(int size,
boolean preserveData)
Ensure the ColumnVector can hold at least size values.
|
void |
fill(long value) |
void |
fillWithNulls() |
void |
flatten(boolean selectedInUse,
int[] sel,
int size) |
void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector.
|
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 long[] vector
public static final long NULL_VALUE
public LongColumnVector()
public LongColumnVector(int len)
len
- the number of rowspublic void copySelected(boolean selectedInUse, int[] sel, int size, LongColumnVector output)
public void copySelected(boolean selectedInUse, int[] sel, int size, DoubleColumnVector output)
public void fill(long value)
public void fillWithNulls()
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 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.