public abstract class ColumnVector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ColumnVector.Type
The current kinds of column vectors.
|
Modifier and Type | Field and Description |
---|---|
boolean[] |
isNull |
boolean |
isRepeating |
boolean |
noNulls |
ColumnVector.Type |
type |
Constructor and Description |
---|
ColumnVector(ColumnVector.Type type,
int len)
Constructor for super-class ColumnVector.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
ColumnVector outputColVector) |
int |
decRef() |
void |
ensureSize(int size,
boolean preserveData)
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) |
int |
getRef() |
void |
incRef() |
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 outputElementNum,
int inputElementNum,
ColumnVector inputColVector)
Set the element in this column vector from the given input vector.
|
void |
setRepeating(boolean isRepeating)
Sets the isRepeating flag.
|
void |
shallowCopyTo(ColumnVector otherCv)
Shallow copy of the contents of this vector to the other vector;
replaces other vector's values.
|
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 final ColumnVector.Type type
public boolean[] isNull
public boolean noNulls
public boolean isRepeating
public ColumnVector(ColumnVector.Type type, int len)
len
- Vector lengthpublic void reset()
public final void incRef()
public final int getRef()
public final int decRef()
public void setRepeating(boolean isRepeating)
isRepeating
- flag for repeating value.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 outputElementNum, int inputElementNum, ColumnVector inputColVector)
public abstract void copySelected(boolean selectedInUse, int[] sel, int size, ColumnVector outputColVector)
public void init()
public void ensureSize(int size, boolean preserveData)
size
- the new minimum sizepreserveData
- 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 printpublic void shallowCopyTo(ColumnVector otherCv)
Copyright © 2021 The Apache Software Foundation. All rights reserved.