public class UnionColumnVector extends ColumnVector
ColumnVector.Type
Modifier and Type | Field and Description |
---|---|
ColumnVector[] |
fields |
int[] |
tags |
isNull, isRepeating, noNulls
Constructor and Description |
---|
UnionColumnVector() |
UnionColumnVector(int len,
ColumnVector... fields)
Constructor for UnionColumnVector
|
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, flattenRepeatingNulls
public 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 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?public void reset()
ColumnVector
reset
in class ColumnVector
public void init()
ColumnVector
init
in class ColumnVector
public void unFlatten()
ColumnVector
unFlatten
in class ColumnVector
public void setRepeating(boolean isRepeating)
ColumnVector
setRepeating
in class ColumnVector
Copyright © 2016 The Apache Software Foundation. All rights reserved.