public class StructColumnVector extends ColumnVector
ColumnVector.Type| Modifier and Type | Field and Description |
|---|---|
ColumnVector[] |
fields |
isNull, isRepeating, noNulls| Constructor and Description |
|---|
StructColumnVector() |
StructColumnVector(int len,
ColumnVector... fields)
Constructor for StructColumnVector
|
| Modifier and Type | Method and Description |
|---|---|
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 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.
|
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 ColumnVector[] fields
public StructColumnVector()
public StructColumnVector(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 outElementNum,
int inputElementNum,
ColumnVector inputVector)
ColumnVectorsetElement 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 ColumnVectorCopyright © 2016 The Apache Software Foundation. All rights reserved.