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 for
ColumnVectors, including NULL information and
dictionary. NOTE: if there are some nulls, must set noNulls to false.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DictionaryThe Dictionary for this column.protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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, waitMethods inherited from interface org.apache.flink.table.data.columnar.vector.ColumnVector
isNullAtMethods inherited from interface org.apache.flink.table.data.columnar.vector.writable.WritableColumnVector
fillWithNulls, getDictionaryIds, reserveDictionaryIds, reset, setNullAt, setNulls
-
Field Details
-
noNulls
protected boolean noNulls -
dictionary
The Dictionary for this column. If it's not null, will be used to decode the value in get().
-
-
Constructor Details
-
AbstractWritableVector
public AbstractWritableVector()
-
-
Method Details
-
setDictionary
Update the dictionary.- Specified by:
setDictionaryin interfaceWritableColumnVector
-
hasDictionary
public boolean hasDictionary()Returns true if this column has a dictionary.- Specified by:
hasDictionaryin interfaceWritableColumnVector
-