public class UnionColumnVector extends ColumnVector
ColumnVector.Type| Modifier and Type | Field and Description |
|---|---|
ColumnVector[] |
fields |
int[] |
tags |
isNull, isRepeating, noNulls, type| Constructor and Description |
|---|
UnionColumnVector() |
UnionColumnVector(int len,
ColumnVector... fields)
Constructor for UnionColumnVector
|
| 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 |
flatten(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
|
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.
|
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.
|
flattenNoNulls, flattenPush, flattenRepeatingNullspublic int[] tags
public ColumnVector[] fields
public UnionColumnVector()
public UnionColumnVector(int len,
ColumnVector... fields)
len - Vector lengthfields - the field column vectorspublic void flatten(boolean selectedInUse,
int[] sel,
int size)
flatten in class ColumnVectorpublic void setElement(int outputElementNum,
int inputElementNum,
ColumnVector inputColVector)
setElement in class ColumnVectorpublic void stringifyValue(StringBuilder buffer, int row)
ColumnVectorstringifyValue in class ColumnVectorbuffer - the buffer to print intorow - the id of the row to printpublic void ensureSize(int size,
boolean preserveData)
ColumnVectorensureSize in class ColumnVectorsize - the new minimum sizepreserveData - should the old data be preserved?public void reset()
ColumnVectorreset in class ColumnVectorpublic void init()
ColumnVectorinit in class ColumnVectorpublic void unFlatten()
ColumnVectorunFlatten in class ColumnVectorpublic void setRepeating(boolean isRepeating)
ColumnVectorsetRepeating in class ColumnVectorpublic void shallowCopyTo(ColumnVector otherCv)
ColumnVectorshallowCopyTo in class ColumnVectorpublic void copySelected(boolean selectedInUse,
int[] sel,
int size,
ColumnVector outputColVector)
copySelected in class ColumnVectorCopyright © 2018 The Apache Software Foundation. All rights reserved.