public class SparkRow extends Object implements InternalRow, Serializable
InternalRow wraps spark Row.InternalRow.FieldGetter| Constructor and Description | 
|---|
| SparkRow(RowType type,
        org.apache.spark.sql.Row row) | 
| SparkRow(RowType type,
        org.apache.spark.sql.Row row,
        RowKind rowkind) | 
| Modifier and Type | Method and Description | 
|---|---|
| InternalArray | getArray(int i)Returns the array value at the given position. | 
| byte[] | getBinary(int i)Returns the binary value at the given position. | 
| boolean | getBoolean(int i)Returns the boolean value at the given position. | 
| byte | getByte(int i)Returns the byte value at the given position. | 
| Decimal | getDecimal(int i,
          int precision,
          int scale)Returns the decimal value at the given position. | 
| double | getDouble(int i)Returns the double value at the given position. | 
| int | getFieldCount()Returns the number of fields in this row. | 
| float | getFloat(int i)Returns the float value at the given position. | 
| int | getInt(int i)Returns the integer value at the given position. | 
| long | getLong(int i)Returns the long value at the given position. | 
| InternalMap | getMap(int i)Returns the map value at the given position. | 
| InternalRow | getRow(int i,
      int i1)Returns the row value at the given position. | 
| RowKind | getRowKind()Returns the kind of change that this row describes in a changelog. | 
| short | getShort(int i)Returns the short value at the given position. | 
| BinaryString | getString(int i)Returns the string value at the given position. | 
| Timestamp | getTimestamp(int i,
            int precision)Returns the timestamp value at the given position. | 
| boolean | isNullAt(int i)Returns true if the element is null at the given position. | 
| void | setRowKind(RowKind rowKind)Sets the kind of change that this row describes in a changelog. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFieldGetter, getDataClasspublic SparkRow(RowType type, org.apache.spark.sql.Row row)
public int getFieldCount()
InternalRowThe number does not include RowKind. It is kept separately.
getFieldCount in interface InternalRowpublic RowKind getRowKind()
InternalRowgetRowKind in interface InternalRowRowKindpublic void setRowKind(RowKind rowKind)
InternalRowsetRowKind in interface InternalRowRowKindpublic boolean isNullAt(int i)
DataGettersisNullAt in interface DataGetterspublic boolean getBoolean(int i)
DataGettersgetBoolean in interface DataGetterspublic byte getByte(int i)
DataGettersgetByte in interface DataGetterspublic short getShort(int i)
DataGettersgetShort in interface DataGetterspublic int getInt(int i)
DataGettersgetInt in interface DataGetterspublic long getLong(int i)
DataGettersgetLong in interface DataGetterspublic float getFloat(int i)
DataGettersgetFloat in interface DataGetterspublic double getDouble(int i)
DataGettersgetDouble in interface DataGetterspublic BinaryString getString(int i)
DataGettersgetString in interface DataGetterspublic Decimal getDecimal(int i, int precision, int scale)
DataGettersThe precision and scale are required to determine whether the decimal value was stored in
 a compact representation (see Decimal).
getDecimal in interface DataGetterspublic Timestamp getTimestamp(int i, int precision)
DataGettersThe precision is required to determine whether the timestamp value was stored in a compact
 representation (see Timestamp).
getTimestamp in interface DataGetterspublic byte[] getBinary(int i)
DataGettersgetBinary in interface DataGetterspublic InternalArray getArray(int i)
DataGettersgetArray in interface DataGetterspublic InternalMap getMap(int i)
DataGettersgetMap in interface DataGetterspublic InternalRow getRow(int i, int i1)
DataGettersThe number of fields is required to correctly extract the row.
getRow in interface DataGettersCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.