Package io.delta.kernel.internal.data
Class GenericRow
Object
io.delta.kernel.internal.data.GenericRow
- All Implemented Interfaces:
Row
- Direct Known Subclasses:
ScanStateRow,TransactionStateRow
Exposes a given map of values as a
Row-
Constructor Summary
Constructors -
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.booleangetBoolean(int ordinal) Return boolean value of the column located at the given ordinal.bytegetByte(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.doublegetDouble(int ordinal) Return double value of the column located at the given ordinal.floatgetFloat(int ordinal) Return float value of the column located at the given ordinal.intgetInt(int ordinal) Return integer value of the column located at the given ordinal.longgetLong(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.shortgetShort(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.booleanisNullAt(int ordinal)
-
Constructor Details
-
GenericRow
- Parameters:
schema- the schema of the rowordinalToValue- a mapping of column ordinal to objects; for each column the object must be of the return type corresponding to the data type's getter method in the Row interface
-
-
Method Details
-
getSchema
-
isNullAt
public boolean isNullAt(int ordinal) -
getBoolean
public boolean getBoolean(int ordinal) Description copied from interface:RowReturn boolean value of the column located at the given ordinal. Throws error if the column at given ordinal is not of boolean type,- Specified by:
getBooleanin interfaceRow
-
getByte
public byte getByte(int ordinal) Description copied from interface:RowReturn byte value of the column located at the given ordinal. Throws error if the column at given ordinal is not of boolean type, -
getShort
public short getShort(int ordinal) Description copied from interface:RowReturn short value of the column located at the given ordinal. Throws error if the column at given ordinal is not of boolean type, -
getInt
public int getInt(int ordinal) Description copied from interface:RowReturn integer value of the column located at the given ordinal. Throws error if the column at given ordinal is not of integer type, -
getLong
public long getLong(int ordinal) Description copied from interface:RowReturn long value of the column located at the given ordinal. Throws error if the column at given ordinal is not of long type, -
getFloat
public float getFloat(int ordinal) Description copied from interface:RowReturn float value of the column located at the given ordinal. Throws error if the column at given ordinal is not of long type, -
getDouble
public double getDouble(int ordinal) Description copied from interface:RowReturn double value of the column located at the given ordinal. Throws error if the column at given ordinal is not of long type, -
getString
Description copied from interface:RowReturn string value of the column located at the given ordinal. Throws error if the column at given ordinal is not of varchar type, -
getDecimal
Description copied from interface:RowReturn decimal value of the column located at the given ordinal. Throws error if the column at given ordinal is not of decimal type,- Specified by:
getDecimalin interfaceRow
-
getBinary
public byte[] getBinary(int ordinal) Description copied from interface:RowReturn binary value of the column located at the given ordinal. Throws error if the column at given ordinal is not of varchar type, -
getStruct
Description copied from interface:RowReturn struct value of the column located at the given ordinal. Throws error if the column at given ordinal is not of struct type, -
getArray
Description copied from interface:RowReturn array value of the column located at the given ordinal. Throws error if the column at given ordinal is not of array type, -
getMap
Description copied from interface:RowReturn map value of the column located at the given ordinal. Throws error if the column at given ordinal is not of map type,
-