Class DefaultSubFieldVector
Object
io.delta.kernel.defaults.internal.data.vector.DefaultSubFieldVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
ColumnVector wrapper on top of Row objects. This wrapper allows referencing any
nested level column vector from a set of rows.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSubFieldVector(int size, io.delta.kernel.types.DataType dataType, int columnOrdinal, Function<Integer, io.delta.kernel.data.Row> rowIdToRowAccessor) Create an instance ofDefaultSubFieldVector -
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.data.ColumnVectorgetChild(int childOrdinal) 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)
-
Constructor Details
-
DefaultSubFieldVector
public DefaultSubFieldVector(int size, io.delta.kernel.types.DataType dataType, int columnOrdinal, Function<Integer, io.delta.kernel.data.Row> rowIdToRowAccessor) Create an instance ofDefaultSubFieldVector- Parameters:
size- Number of elements in the vectordataType- Datatype of the vectorcolumnOrdinal- Ordinal of the column represented by this vector in the rows returned byrowIdToRowAccessorrowIdToRowAccessor-Functionthat returns aRowobject for given rowId
-
-
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) - 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
-
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
-
getChild
public io.delta.kernel.data.ColumnVector getChild(int childOrdinal) - Specified by:
getChildin interfaceio.delta.kernel.data.ColumnVector
-