public abstract class AbstractColumnVector extends Object implements ColumnVector, Serializable
ColumnVector
s, including NULL information and dictionary.
NOTE: if there are some nulls, must set noNulls
to false.Modifier and Type | Field and Description |
---|---|
protected Dictionary |
dictionary
The Dictionary for this column.
|
protected boolean |
noNulls |
Constructor and Description |
---|
AbstractColumnVector() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasDictionary()
Returns true if this column has a dictionary.
|
abstract IntColumnVector |
reserveDictionaryIds(int capacity)
Reserve a integer column for ids of dictionary.
|
void |
setDictionary(Dictionary dictionary)
Update the dictionary.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isNullAt, reset
protected boolean noNulls
protected Dictionary dictionary
public void setDictionary(Dictionary dictionary)
public abstract IntColumnVector reserveDictionaryIds(int capacity)
setDictionary(org.apache.flink.table.dataformat.vector.Dictionary)
. Suppose a ColumnVector's data
comes from two pages. Perhaps one page uses a dictionary and the other page does not use a
dictionary. The first page that uses a field will have dictionaryIds, which requires
decoding the first page (Out batch does not support a mix of dictionary).public boolean hasDictionary()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.