Class DefaultDecimalVector
Object
io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
io.delta.kernel.defaults.internal.data.vector.DefaultDecimalVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
ColumnVector implementation for decimal type data.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDecimalVector(io.delta.kernel.types.DataType dataType, int size, BigDecimal[] values) Create an instance ofColumnVectorfor decimal type. -
Method Summary
Modifier and TypeMethodDescriptiongetDecimal(int rowId) booleanisNullAt(int rowId) Is the value at givenrowIdindex is null?Methods inherited from class io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
close, getArray, getBinary, getBoolean, getByte, getDataType, getDouble, getFloat, getInt, getLong, getMap, getShort, getSize, getStringMethods 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
-
DefaultDecimalVector
Create an instance ofColumnVectorfor decimal type.- Parameters:
size- number of elements in the vector.values- column vector values.
-
-
Method Details
-
isNullAt
public boolean isNullAt(int rowId) Description copied from class:AbstractColumnVectorIs the value at givenrowIdindex is null?- Specified by:
isNullAtin interfaceio.delta.kernel.data.ColumnVector- Overrides:
isNullAtin classAbstractColumnVector- Parameters:
rowId-- Returns:
-
getDecimal
- Specified by:
getDecimalin interfaceio.delta.kernel.data.ColumnVector- Overrides:
getDecimalin classAbstractColumnVector
-