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 forColumnVector
s, including NULL information and dictionary. NOTE: if there are some nulls, must setnoNulls
to false.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Dictionary
dictionary
The Dictionary for this column.protected boolean
noNulls
-
Constructor Summary
Constructors Constructor Description AbstractWritableVector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasDictionary()
Returns true if this column has a dictionary.void
setDictionary(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:
setDictionary
in interfaceWritableColumnVector
-
hasDictionary
public boolean hasDictionary()
Returns true if this column has a dictionary.- Specified by:
hasDictionary
in interfaceWritableColumnVector
-
-