Class DefaultMapVector
Object
io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
io.delta.kernel.defaults.internal.data.vector.DefaultMapVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
ColumnVector implementation for map type data.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMapVector(int size, io.delta.kernel.types.DataType type, Optional<boolean[]> nullability, int[] offsets, io.delta.kernel.data.ColumnVector keyVector, io.delta.kernel.data.ColumnVector valueVector) Create an instance ofColumnVectorfor map type. -
Method Summary
Modifier and TypeMethodDescriptionio.delta.kernel.data.MapValuegetMap(int rowId) Get the value at givenrowId.Methods inherited from class io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
close, getArray, getBinary, getBoolean, getByte, getDataType, getDecimal, getDouble, getFloat, getInt, getLong, getShort, getSize, getString, isNullAtMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.delta.kernel.data.ColumnVector
getChild
-
Constructor Details
-
DefaultMapVector
public DefaultMapVector(int size, io.delta.kernel.types.DataType type, Optional<boolean[]> nullability, int[] offsets, io.delta.kernel.data.ColumnVector keyVector, io.delta.kernel.data.ColumnVector valueVector) Create an instance ofColumnVectorfor map type.- Parameters:
size- number of elements in the vector.nullability- Optional array of nullability value for each element in the vector. All values in the vector are considered non-null when parameter is empty.offsets- Offsets into key and value column vectors on where the index of particular row values start and end.keyVector- Vector containing the `key` values from the kv map.valueVector- Vector containing the `value` values from the kv map.
-
-
Method Details
-
getMap
public io.delta.kernel.data.MapValue getMap(int rowId) Get the value at givenrowId. The return value is undefined and can be anything, if the slot forrowIdis null.- Specified by:
getMapin interfaceio.delta.kernel.data.ColumnVector- Overrides:
getMapin classAbstractColumnVector- Parameters:
rowId-- Returns:
-