Class HeapShortVector
java.lang.Object
org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
org.apache.flink.table.data.columnar.vector.heap.HeapShortVector
- All Implemented Interfaces:
Serializable,ColumnVector,ShortColumnVector,WritableColumnVector,WritableShortVector
This class represents a nullable short column vector.
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
BYTE_ARRAY_OFFSET, dictionaryIds, DOUBLE_ARRAY_OFFSET, FLOAT_ARRAY_OFFSET, INT_ARRAY_OFFSET, isNull, LITTLE_ENDIAN, LONG_ARRAY_OFFSET, UNSAFEFields inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
dictionary, noNulls -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.table.data.columnar.vector.heap.AbstractHeapVector
fillWithNulls, getDictionaryIds, getLen, isNullAt, reserveDictionaryIds, reset, setNullAt, setNullsMethods inherited from class org.apache.flink.table.data.columnar.vector.writable.AbstractWritableVector
hasDictionary, setDictionaryMethods 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, hasDictionary, reserveDictionaryIds, reset, setDictionary, setNullAt, setNulls
-
Field Details
-
vector
public short[] vector
-
-
Constructor Details
-
HeapShortVector
public HeapShortVector(int len) Don't use this except for testing purposes.- Parameters:
len- the number of rows
-
-
Method Details
-
getShort
public short getShort(int i) - Specified by:
getShortin interfaceShortColumnVector
-
setShort
public void setShort(int i, short value) Description copied from interface:WritableShortVectorSet short at rowId with the provided value.- Specified by:
setShortin interfaceWritableShortVector
-
fill
public void fill(short value) Description copied from interface:WritableShortVectorFill the column vector with the provided value.- Specified by:
fillin interfaceWritableShortVector
-