Class

org.apache.spark.sql.catalyst.expressions

GenericRowWithSchema

Related Doc: package expressions

Permalink

class GenericRowWithSchema extends GenericRow

Linear Supertypes
GenericRow, Row, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GenericRowWithSchema
  2. GenericRow
  3. Row
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenericRowWithSchema()

    Permalink

    No-arg constructor for serialization.

    No-arg constructor for serialization.

    Attributes
    protected
  2. new GenericRowWithSchema(values: Array[Any], schema: StructType)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def anyNull: Boolean

    Permalink

    Returns true if there are any NULL values in this row.

    Returns true if there are any NULL values in this row.

    Definition Classes
    Row
  5. def apply(i: Int): Any

    Permalink

    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 (or Product)
    Definition Classes
    Row
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def copy(): Row

    Permalink

    Make a copy of the current Row object.

    Make a copy of the current Row object.

    Definition Classes
    GenericRowRow
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(o: Any): Boolean

    Permalink
    Definition Classes
    Row → AnyRef → Any
  11. def fieldIndex(name: String): Int

    Permalink

    Returns the index of a given field name.

    Returns the index of a given field name.

    Definition Classes
    GenericRowWithSchemaRow
    Exceptions thrown

    IllegalArgumentException when fieldName do not exist.

    UnsupportedOperationException when schema is not defined.

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(i: Int): Any

    Permalink

    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 (or Product)
    Definition Classes
    GenericRowRow
  14. def getAs[T](fieldName: String): T

    Permalink

    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

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    IllegalArgumentException when fieldName do not exist.

    UnsupportedOperationException when schema is not defined.

  15. def getAs[T](i: Int): T

    Permalink

    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

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  16. def getBoolean(i: Int): Boolean

    Permalink

    Returns the value at position i as a primitive boolean.

    Returns the value at position i as a primitive boolean.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    NullPointerException when value is null.

  17. def getByte(i: Int): Byte

    Permalink

    Returns the value at position i as a primitive byte.

    Returns the value at position i as a primitive byte.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    NullPointerException when value is null.

  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getDate(i: Int): Date

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  20. def getDecimal(i: Int): BigDecimal

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  21. def getDouble(i: Int): Double

    Permalink

    Returns the value at position i as a primitive double.

    Returns the value at position i as a primitive double.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    NullPointerException when value is null.

  22. def getFloat(i: Int): Float

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    NullPointerException when value is null.

  23. def getInt(i: Int): Int

    Permalink

    Returns the value at position i as a primitive int.

    Returns the value at position i as a primitive int.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    NullPointerException when value is null.

  24. def getJavaMap[K, V](i: Int): Map[K, V]

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  25. def getList[T](i: Int): List[T]

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  26. def getLong(i: Int): Long

    Permalink

    Returns the value at position i as a primitive long.

    Returns the value at position i as a primitive long.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    NullPointerException when value is null.

  27. def getMap[K, V](i: Int): Map[K, V]

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  28. def getSeq[T](i: Int): Seq[T]

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  29. def getShort(i: Int): Short

    Permalink

    Returns the value at position i as a primitive short.

    Returns the value at position i as a primitive short.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    NullPointerException when value is null.

  30. def getString(i: Int): String

    Permalink

    Returns the value at position i as a String object.

    Returns the value at position i as a String object.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  31. def getStruct(i: Int): Row

    Permalink

    Returns the value at position i of struct type as an Row object.

    Returns the value at position i of struct type as an Row object.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  32. def getTimestamp(i: Int): Timestamp

    Permalink

    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.

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

  33. def getValuesMap[T](fieldNames: Seq[String]): Map[String, T]

    Permalink

    Returns a Map(name -> value) for the requested fieldNames For primitive types if value is null it returns 'zero value' specific for primitive ie.

    Returns a Map(name -> value) 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

    Definition Classes
    Row
    Exceptions thrown

    ClassCastException when data type does not match.

    IllegalArgumentException when fieldName do not exist.

    UnsupportedOperationException when schema is not defined.

  34. def hashCode(): Int

    Permalink
    Definition Classes
    Row → AnyRef → Any
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. def isNullAt(i: Int): Boolean

    Permalink

    Checks whether the value at position i is null.

    Checks whether the value at position i is null.

    Definition Classes
    Row
  37. def length: Int

    Permalink

    Number of elements in the Row.

    Number of elements in the Row.

    Definition Classes
    GenericRowRow
  38. def mkString(start: String, sep: String, end: String): String

    Permalink

    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.

    Definition Classes
    Row
  39. def mkString(sep: String): String

    Permalink

    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.

    Definition Classes
    Row
  40. def mkString: String

    Permalink

    Displays all elements of this sequence in a string (without a separator).

    Displays all elements of this sequence in a string (without a separator).

    Definition Classes
    Row
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. val schema: StructType

    Permalink

    Schema for the row.

    Schema for the row.

    Definition Classes
    GenericRowWithSchemaRow
  45. def size: Int

    Permalink

    Number of elements in the Row.

    Number of elements in the Row.

    Definition Classes
    Row
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def toSeq: Seq[Any]

    Permalink

    Return a Scala Seq representing the row.

    Return a Scala Seq representing the row. Elements are placed in the same order in the Seq.

    Definition Classes
    GenericRowRow
  48. def toString(): String

    Permalink
    Definition Classes
    Row → AnyRef → Any
  49. val values: Array[Any]

    Permalink
    Attributes
    protected[org.apache.spark.sql]
    Definition Classes
    GenericRow
  50. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from GenericRow

Inherited from Row

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped