Class AbstractColumnVector
Object
io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
- Direct Known Subclasses:
DefaultArrayVector,DefaultBinaryVector,DefaultBooleanVector,DefaultByteVector,DefaultDecimalVector,DefaultDoubleVector,DefaultFloatVector,DefaultIntVector,DefaultLongVector,DefaultMapVector,DefaultShortVector,DefaultStructVector
public abstract class AbstractColumnVector
extends Object
implements io.delta.kernel.data.ColumnVector
Abstract implementation of
ColumnVector that provides the default functionality common to
most of the specific data type ColumnVector implementations.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()io.delta.kernel.data.ArrayValuegetArray(int rowId) byte[]getBinary(int rowId) booleangetBoolean(int rowId) bytegetByte(int rowId) io.delta.kernel.types.DataTypegetDecimal(int rowId) doublegetDouble(int rowId) floatgetFloat(int rowId) intgetInt(int rowId) longgetLong(int rowId) io.delta.kernel.data.MapValuegetMap(int rowId) shortgetShort(int rowId) intgetSize()getString(int rowId) booleanisNullAt(int rowId) Is the value at givenrowIdindex is null?Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.delta.kernel.data.ColumnVector
getChild
-
Method Details
-
getDataType
public io.delta.kernel.types.DataType getDataType()- Specified by:
getDataTypein interfaceio.delta.kernel.data.ColumnVector
-
getSize
public int getSize()- Specified by:
getSizein interfaceio.delta.kernel.data.ColumnVector
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceio.delta.kernel.data.ColumnVector
-
isNullAt
public boolean isNullAt(int rowId) Is the value at givenrowIdindex is null?- Specified by:
isNullAtin interfaceio.delta.kernel.data.ColumnVector- Parameters:
rowId-- Returns:
-
getBoolean
public boolean getBoolean(int rowId) - Specified by:
getBooleanin interfaceio.delta.kernel.data.ColumnVector
-
getByte
public byte getByte(int rowId) - Specified by:
getBytein interfaceio.delta.kernel.data.ColumnVector
-
getShort
public short getShort(int rowId) - Specified by:
getShortin interfaceio.delta.kernel.data.ColumnVector
-
getInt
public int getInt(int rowId) - Specified by:
getIntin interfaceio.delta.kernel.data.ColumnVector
-
getLong
public long getLong(int rowId) - Specified by:
getLongin interfaceio.delta.kernel.data.ColumnVector
-
getFloat
public float getFloat(int rowId) - Specified by:
getFloatin interfaceio.delta.kernel.data.ColumnVector
-
getDouble
public double getDouble(int rowId) - Specified by:
getDoublein interfaceio.delta.kernel.data.ColumnVector
-
getBinary
public byte[] getBinary(int rowId) - Specified by:
getBinaryin interfaceio.delta.kernel.data.ColumnVector
-
getString
- Specified by:
getStringin interfaceio.delta.kernel.data.ColumnVector
-
getDecimal
- Specified by:
getDecimalin interfaceio.delta.kernel.data.ColumnVector
-
getMap
public io.delta.kernel.data.MapValue getMap(int rowId) - Specified by:
getMapin interfaceio.delta.kernel.data.ColumnVector
-
getArray
public io.delta.kernel.data.ArrayValue getArray(int rowId) - Specified by:
getArrayin interfaceio.delta.kernel.data.ColumnVector
-