Class DefaultGenericVector
Object
io.delta.kernel.defaults.internal.data.vector.DefaultGenericVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
- Direct Known Subclasses:
DefaultConstantVector
Generic column vector implementation to expose an array of objects as a column vector.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static DefaultGenericVectorstatic DefaultGenericVectorio.delta.kernel.data.ArrayValuegetArray(int rowId) byte[]getBinary(int rowId) booleangetBoolean(int rowId) bytegetByte(int rowId) io.delta.kernel.data.ColumnVectorgetChild(int ordinal) 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)
-
Method Details
-
fromArray
public static DefaultGenericVector fromArray(io.delta.kernel.types.DataType dataType, Object[] elements) -
fromList
public static DefaultGenericVector fromList(io.delta.kernel.types.DataType dataType, List<Object> elements) -
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) - Specified by:
isNullAtin interfaceio.delta.kernel.data.ColumnVector
-
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
-
getString
- Specified by:
getStringin interfaceio.delta.kernel.data.ColumnVector
-
getDecimal
- Specified by:
getDecimalin interfaceio.delta.kernel.data.ColumnVector
-
getBinary
public byte[] getBinary(int rowId) - Specified by:
getBinaryin interfaceio.delta.kernel.data.ColumnVector
-
getArray
public io.delta.kernel.data.ArrayValue getArray(int rowId) - Specified by:
getArrayin interfaceio.delta.kernel.data.ColumnVector
-
getMap
public io.delta.kernel.data.MapValue getMap(int rowId) - Specified by:
getMapin interfaceio.delta.kernel.data.ColumnVector
-
getChild
public io.delta.kernel.data.ColumnVector getChild(int ordinal) - Specified by:
getChildin interfaceio.delta.kernel.data.ColumnVector
-