public abstract class ColumnVector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ColumnVector.Type |
Modifier and Type | Field and Description |
---|---|
boolean[] |
isNull |
boolean |
isRepeating |
boolean |
noNulls |
Constructor and Description |
---|
ColumnVector(int len)
Constructor for super-class ColumnVector.
|
Modifier and Type | Method and Description |
---|---|
void |
ensureSize(int size,
boolean presesrveData)
Ensure the ColumnVector can hold at least size values.
|
abstract void |
flatten(boolean selectedInUse,
int[] sel,
int size) |
protected void |
flattenNoNulls(boolean selectedInUse,
int[] sel,
int size) |
protected void |
flattenPush() |
protected void |
flattenRepeatingNulls(boolean selectedInUse,
int[] sel,
int size) |
void |
init()
Initialize the column vector.
|
void |
reset()
Resets the column to default state
- fills the isNull array with false
- sets noNulls to true
- sets isRepeating to false
|
abstract void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector.
|
void |
setRepeating(boolean isRepeating)
Sets the isRepeating flag.
|
abstract void |
stringifyValue(StringBuilder buffer,
int row)
Print the value for this column into the given string builder.
|
void |
unFlatten()
Restore the state of isRepeating and noNulls to what it was
before flattening.
|
public boolean[] isNull
public boolean noNulls
public boolean isRepeating
public ColumnVector(int len)
len
- Vector lengthpublic void reset()
public void setRepeating(boolean isRepeating)
isRepeating
- public abstract void flatten(boolean selectedInUse, int[] sel, int size)
protected void flattenRepeatingNulls(boolean selectedInUse, int[] sel, int size)
protected void flattenNoNulls(boolean selectedInUse, int[] sel, int size)
public void unFlatten()
protected void flattenPush()
public abstract void setElement(int outElementNum, int inputElementNum, ColumnVector inputVector)
public void init()
public void ensureSize(int size, boolean presesrveData)
size
- the new minimum sizepresesrveData
- should the old data be preserved?public abstract void stringifyValue(StringBuilder buffer, int row)
buffer
- the buffer to print intorow
- the id of the row to printCopyright © 2016 The Apache Software Foundation. All rights reserved.