org.apache.spark.sql.catalyst.expressions

GenericMutableRow

class GenericMutableRow extends GenericRow with MutableRow

Linear Supertypes
MutableRow, GenericRow, sql.Row, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GenericMutableRow
  2. MutableRow
  3. GenericRow
  4. Row
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenericMutableRow(size: Int)

  2. new GenericMutableRow()

    No-arg constructor for serialization.

  3. new GenericMutableRow(v: Array[Any])

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def anyNull: Boolean

    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

    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
    Definition Classes
    GenericRowRow
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Make a copy of the current Row object.

    Make a copy of the current Row object.

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

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

    Definition Classes
    Row → AnyRef → Any
  11. def finalize(): Unit

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

    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
    Definition Classes
    Row
  13. def getAs[T](i: Int): T

    Returns the value at position i.

    Returns the value at position i.

    Definition Classes
    Row
    Exceptions thrown
    ClassCastException

    when data type does not match.

  14. def getBoolean(i: Int): Boolean

    Returns the value at position i as a primitive boolean.

    Returns the value at position i as a primitive boolean.

    Definition Classes
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

  15. def getByte(i: Int): Byte

    Returns the value at position i as a primitive byte.

    Returns the value at position i as a primitive byte.

    Definition Classes
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

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

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

    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.

  18. def getDecimal(i: Int): BigDecimal

    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.

  19. def getDouble(i: Int): Double

    Returns the value at position i as a primitive double.

    Returns the value at position i as a primitive double.

    Definition Classes
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

  20. def getFloat(i: Int): Float

    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
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

  21. def getInt(i: Int): Int

    Returns the value at position i as a primitive int.

    Returns the value at position i as a primitive int.

    Definition Classes
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

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

    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.

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

    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.

  24. def getLong(i: Int): Long

    Returns the value at position i as a primitive long.

    Returns the value at position i as a primitive long.

    Definition Classes
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

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

    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.

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

    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.

  27. def getShort(i: Int): Short

    Returns the value at position i as a primitive short.

    Returns the value at position i as a primitive short.

    Definition Classes
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

  28. def getString(i: Int): String

    Returns the value at position i as a String object.

    Returns the value at position i as a String object.

    Definition Classes
    GenericRowRow
    Exceptions thrown
    ClassCastException

    when data type does not match.

    NullPointerException

    when value is null.

  29. def getStruct(i: Int): sql.Row

    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.

  30. def hashCode(): Int

    Definition Classes
    GenericRowRow → AnyRef → Any
  31. final def isInstanceOf[T0]: Boolean

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

    Checks whether the value at position i is null.

    Checks whether the value at position i is null.

    Definition Classes
    GenericRowRow
  33. def length: Int

    Number of elements in the Row.

    Number of elements in the Row.

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

    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
  35. def mkString(sep: String): String

    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
  36. def mkString: 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).

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

    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  40. def schema: StructType

    Schema for the row.

    Schema for the row.

    Definition Classes
    Row
  41. def setBoolean(ordinal: Int, value: Boolean): Unit

    Definition Classes
    GenericMutableRowMutableRow
  42. def setByte(ordinal: Int, value: Byte): Unit

    Definition Classes
    GenericMutableRowMutableRow
  43. def setDouble(ordinal: Int, value: Double): Unit

    Definition Classes
    GenericMutableRowMutableRow
  44. def setFloat(ordinal: Int, value: Float): Unit

    Definition Classes
    GenericMutableRowMutableRow
  45. def setInt(ordinal: Int, value: Int): Unit

    Definition Classes
    GenericMutableRowMutableRow
  46. def setLong(ordinal: Int, value: Long): Unit

    Definition Classes
    GenericMutableRowMutableRow
  47. def setNullAt(i: Int): Unit

    Definition Classes
    GenericMutableRowMutableRow
  48. def setShort(ordinal: Int, value: Short): Unit

    Definition Classes
    GenericMutableRowMutableRow
  49. def setString(ordinal: Int, value: String): Unit

    Definition Classes
    GenericMutableRowMutableRow
  50. def size: Int

    Number of elements in the Row.

    Number of elements in the Row.

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

    Definition Classes
    AnyRef
  52. def toSeq: Seq[Any]

    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
  53. def toString(): String

    Definition Classes
    Row → AnyRef → Any
  54. def update(ordinal: Int, value: Any): Unit

    Definition Classes
    GenericMutableRowMutableRow
  55. val values: Array[Any]

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MutableRow

Inherited from GenericRow

Inherited from sql.Row

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped