public class MapColumnVector extends MultiValuedColumnVector
ColumnVector.Type
Modifier and Type | Field and Description |
---|---|
ColumnVector |
keys |
ColumnVector |
values |
childCount, lengths, offsets
isNull, isRepeating, noNulls, type
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 |
copySelected(boolean selectedInUse,
int[] sel,
int size,
ColumnVector outputColVector) |
void |
init()
Initializee the vector
|
void |
reset()
Reset the vector for the next batch.
|
void |
setElement(int outputElementNum,
int inputElementNum,
ColumnVector inputColVector)
Set the element in this column vector from the given input vector.
|
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.
|
ensureSize, flatten
decRef, flattenNoNulls, flattenPush, flattenRepeatingNulls, getRef, incRef, setRepeating
public 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 MultiValuedColumnVector
public void setElement(int outputElementNum, int inputElementNum, ColumnVector inputColVector)
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 init()
MultiValuedColumnVector
init
in class MultiValuedColumnVector
public void reset()
MultiValuedColumnVector
reset
in class MultiValuedColumnVector
public void unFlatten()
ColumnVector
unFlatten
in class ColumnVector
public void copySelected(boolean selectedInUse, int[] sel, int size, ColumnVector outputColVector)
copySelected
in class ColumnVector
public void shallowCopyTo(ColumnVector otherCv)
ColumnVector
shallowCopyTo
in class MultiValuedColumnVector
Copyright © 2022 The Apache Software Foundation. All rights reserved.