public class MapColumnVector extends MultiValuedColumnVector
ColumnVector.Type| Modifier and Type | Field and Description |
|---|---|
ColumnVector |
keys |
ColumnVector |
values |
childCount, lengths, offsetsisNull, isRepeating, noNulls| Constructor and Description |
|---|
MapColumnVector() |
MapColumnVector(int len,
ColumnVector keys,
ColumnVector values)
Constructor for MapColumnVector
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
childFlatten(boolean useSelected,
int[] selected,
int size) |
void |
init()
Initializee the vector
|
void |
reset()
Reset the vector for the next batch.
|
void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector.
|
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.
|
ensureSize, flattenflattenNoNulls, flattenPush, flattenRepeatingNulls, setRepeatingpublic ColumnVector keys
public ColumnVector values
public MapColumnVector()
public MapColumnVector(int len,
ColumnVector keys,
ColumnVector values)
len - Vector lengthkeys - The keys column vectorvalues - The values column vectorprotected void childFlatten(boolean useSelected,
int[] selected,
int size)
childFlatten in class MultiValuedColumnVectorpublic 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 init()
MultiValuedColumnVectorinit in class MultiValuedColumnVectorpublic void reset()
MultiValuedColumnVectorreset in class MultiValuedColumnVectorpublic void unFlatten()
ColumnVectorunFlatten in class ColumnVectorCopyright © 2016 The Apache Software Foundation. All rights reserved.