Package io.delta.kernel.data
Interface Row
Represent a single record
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetArray
(int ordinal) Return array value of the column located at the given ordinal.byte[]
getBinary
(int ordinal) Return binary value of the column located at the given ordinal.boolean
getBoolean
(int ordinal) Return boolean value of the column located at the given ordinal.byte
getByte
(int ordinal) Return byte value of the column located at the given ordinal.getDecimal
(int ordinal) Return decimal value of the column located at the given ordinal.double
getDouble
(int ordinal) Return double value of the column located at the given ordinal.float
getFloat
(int ordinal) Return float value of the column located at the given ordinal.int
getInt
(int ordinal) Return integer value of the column located at the given ordinal.long
getLong
(int ordinal) Return long value of the column located at the given ordinal.getMap
(int ordinal) Return map value of the column located at the given ordinal.short
getShort
(int ordinal) Return short value of the column located at the given ordinal.getString
(int ordinal) Return string value of the column located at the given ordinal.getStruct
(int ordinal) Return struct value of the column located at the given ordinal.boolean
isNullAt
(int ordinal)
-
Method Details
-
getSchema
StructType getSchema()- Returns:
- Schema of the record.
-
isNullAt
boolean isNullAt(int ordinal) - Parameters:
ordinal
- the ordinal of the column to check- Returns:
- whether the column at
ordinal
is null
-
getBoolean
boolean getBoolean(int ordinal) Return boolean value of the column located at the given ordinal. Throws error if the column at given ordinal is not of boolean type, -
getByte
byte getByte(int ordinal) Return byte value of the column located at the given ordinal. Throws error if the column at given ordinal is not of boolean type, -
getShort
short getShort(int ordinal) Return short value of the column located at the given ordinal. Throws error if the column at given ordinal is not of boolean type, -
getInt
int getInt(int ordinal) Return integer value of the column located at the given ordinal. Throws error if the column at given ordinal is not of integer type, -
getLong
long getLong(int ordinal) Return long value of the column located at the given ordinal. Throws error if the column at given ordinal is not of long type, -
getFloat
float getFloat(int ordinal) Return float value of the column located at the given ordinal. Throws error if the column at given ordinal is not of long type, -
getDouble
double getDouble(int ordinal) Return double value of the column located at the given ordinal. Throws error if the column at given ordinal is not of long type, -
getString
Return string value of the column located at the given ordinal. Throws error if the column at given ordinal is not of varchar type, -
getDecimal
Return decimal value of the column located at the given ordinal. Throws error if the column at given ordinal is not of decimal type, -
getBinary
byte[] getBinary(int ordinal) Return binary value of the column located at the given ordinal. Throws error if the column at given ordinal is not of varchar type, -
getStruct
Return struct value of the column located at the given ordinal. Throws error if the column at given ordinal is not of struct type, -
getArray
Return array value of the column located at the given ordinal. Throws error if the column at given ordinal is not of array type, -
getMap
Return map value of the column located at the given ordinal. Throws error if the column at given ordinal is not of map type,
-