Class AbstractWritableVector
- java.lang.Object
-
- org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
-
- All Implemented Interfaces:
Serializable,ColumnVector,WritableColumnVector
- Direct Known Subclasses:
AbstractHeapVector
@Internal public abstract class AbstractWritableVector extends Object implements WritableColumnVector, Serializable
Contains the shared structure forColumnVectors, including NULL information and dictionary. NOTE: if there are some nulls, must setnoNullsto false.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DictionarydictionaryThe Dictionary for this column.protected booleannoNulls
-
Constructor Summary
Constructors Constructor Description AbstractWritableVector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasDictionary()Returns true if this column has a dictionary.voidsetDictionary(Dictionary dictionary)Update the dictionary.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.data.columnar.vector.ColumnVector
isNullAt
-
Methods inherited from interface org.apache.flink.table.data.columnar.vector.writable.WritableColumnVector
fillWithNulls, getDictionaryIds, reserveDictionaryIds, reset, setNullAt, setNulls
-
-
-
-
Field Detail
-
noNulls
protected boolean noNulls
-
dictionary
protected Dictionary dictionary
The Dictionary for this column. If it's not null, will be used to decode the value in get().
-
-
Method Detail
-
setDictionary
public void setDictionary(Dictionary dictionary)
Update the dictionary.- Specified by:
setDictionaryin interfaceWritableColumnVector
-
hasDictionary
public boolean hasDictionary()
Returns true if this column has a dictionary.- Specified by:
hasDictionaryin interfaceWritableColumnVector
-
-