Make a copy of the current Row object.
Returns the value at position i.
Returns the value at position i. If the value is null, null is returned. The following is a mapping between Spark SQL types and return types:
BooleanType -> java.lang.Boolean ByteType -> java.lang.Byte ShortType -> java.lang.Short IntegerType -> java.lang.Integer FloatType -> java.lang.Float DoubleType -> java.lang.Double StringType -> String DecimalType -> java.math.BigDecimal DateType -> java.sql.Date TimestampType -> java.sql.Timestamp BinaryType -> byte array ArrayType -> scala.collection.Seq (use getList for java.util.List) MapType -> scala.collection.Map (use getJavaMap for java.util.Map) StructType -> org.apache.spark.sql.Row
Number of elements in the Row.
Number of elements in the Row.
Update the ith value of this buffer.
Returns true if there are any NULL values in this row.
Returns true if there are any NULL values in this row.
Returns the value at position i.
Returns the value at position i. If the value is null, null is returned. The following is a mapping between Spark SQL types and return types:
BooleanType -> java.lang.Boolean ByteType -> java.lang.Byte ShortType -> java.lang.Short IntegerType -> java.lang.Integer FloatType -> java.lang.Float DoubleType -> java.lang.Double StringType -> String DecimalType -> java.math.BigDecimal DateType -> java.sql.Date TimestampType -> java.sql.Timestamp BinaryType -> byte array ArrayType -> scala.collection.Seq (use getList for java.util.List) MapType -> scala.collection.Map (use getJavaMap for java.util.Map) StructType -> org.apache.spark.sql.Row
Returns the index of a given field name.
Returns the index of a given field name.
IllegalArgumentException
when a field name
does not exist.
UnsupportedOperationException
when schema is not defined.
Returns the value of a given fieldName.
Returns the value of a given fieldName. For primitive types if value is null it returns 'zero value' specific for primitive ie. 0 for Int - use isNullAt to ensure that value is not null
ClassCastException
when data type does not match.
IllegalArgumentException
when fieldName do not exist.
UnsupportedOperationException
when schema is not defined.
Returns the value at position i.
Returns the value at position i. For primitive types if value is null it returns 'zero value' specific for primitive ie. 0 for Int - use isNullAt to ensure that value is not null
ClassCastException
when data type does not match.
Returns the value at position i as a primitive boolean.
Returns the value at position i as a primitive boolean.
ClassCastException
when data type does not match.
NullPointerException
when value is null.
Returns the value at position i as a primitive byte.
Returns the value at position i as a primitive byte.
ClassCastException
when data type does not match.
NullPointerException
when value is null.
Returns the value at position i of date type as java.sql.Date.
Returns the value at position i of date type as java.sql.Date.
ClassCastException
when data type does not match.
Returns the value at position i of decimal type as java.math.BigDecimal.
Returns the value at position i of decimal type as java.math.BigDecimal.
ClassCastException
when data type does not match.
Returns the value at position i as a primitive double.
Returns the value at position i as a primitive double.
ClassCastException
when data type does not match.
NullPointerException
when value is null.
Returns the value at position i as a primitive float.
Returns the value at position i as a primitive float. Throws an exception if the type mismatches or if the value is null.
ClassCastException
when data type does not match.
NullPointerException
when value is null.
Returns the value at position i as a primitive int.
Returns the value at position i as a primitive int.
ClassCastException
when data type does not match.
NullPointerException
when value is null.
Returns the value at position i of array type as a java.util.Map.
Returns the value at position i of array type as a java.util.Map.
ClassCastException
when data type does not match.
Returns the value at position i of array type as java.util.List.
Returns the value at position i of array type as java.util.List.
ClassCastException
when data type does not match.
Returns the value at position i as a primitive long.
Returns the value at position i as a primitive long.
ClassCastException
when data type does not match.
NullPointerException
when value is null.
Returns the value at position i of map type as a Scala Map.
Returns the value at position i of map type as a Scala Map.
ClassCastException
when data type does not match.
Returns the value at position i of array type as a Scala Seq.
Returns the value at position i of array type as a Scala Seq.
ClassCastException
when data type does not match.
Returns the value at position i as a primitive short.
Returns the value at position i as a primitive short.
ClassCastException
when data type does not match.
NullPointerException
when value is null.
Returns the value at position i as a String object.
Returns the value at position i as a String object.
ClassCastException
when data type does not match.
Returns the value at position i of struct type as a Row object.
Returns the value at position i of date type as java.sql.Timestamp.
Returns the value at position i of date type as java.sql.Timestamp.
ClassCastException
when data type does not match.
Returns a Map consisting of names and values for the requested fieldNames For primitive types if value is null it returns 'zero value' specific for primitive ie.
Returns a Map consisting of names and values for the requested fieldNames For primitive types if value is null it returns 'zero value' specific for primitive ie. 0 for Int - use isNullAt to ensure that value is not null
ClassCastException
when data type does not match.
IllegalArgumentException
when fieldName do not exist.
UnsupportedOperationException
when schema is not defined.
Checks whether the value at position i is null.
Checks whether the value at position i is null.
Displays all elements of this traversable or iterator in a string using start, end, and separator strings.
Displays all elements of this traversable or iterator in a string using start, end, and separator strings.
Displays all elements of this sequence in a string using a separator string.
Displays all elements of this sequence in a string using a separator string.
Displays all elements of this sequence in a string (without a separator).
Displays all elements of this sequence in a string (without a separator).
Schema for the row.
Schema for the row.
Number of elements in the Row.
Number of elements in the Row.
Return a Scala Seq representing the row.
Return a Scala Seq representing the row. Elements are placed in the same order in the Seq.
A
Row
representing a mutable aggregation buffer.This is not meant to be extended outside of Spark.
1.5.0