public class Row
extends Object
implements scala.Serializable
Constructor and Description |
---|
Row(org.apache.spark.sql.catalyst.expressions.Row row) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object other) |
static Row |
create(Object... values)
Creates a Row with the given values.
|
static Row |
create(scala.collection.Seq<Object> values)
Creates a Row with the given values.
|
boolean |
equals(Object other) |
Object |
get(int i)
Returns the value of column `i`.
|
boolean |
getBoolean(int i)
Returns the value of column
i as a bool. |
byte |
getByte(int i)
Returns the value of column
i as a byte. |
double |
getDouble(int i)
Returns the value of column
i as a double. |
float |
getFloat(int i)
Returns the value of column
i as a float. |
int |
getInt(int i)
Returns the value of column
i as an int. |
long |
getLong(int i)
Returns the value of column
i as a long. |
short |
getShort(int i)
Returns the value of column
i as a short. |
String |
getString(int i)
Returns the value of column
i as a String. |
int |
hashCode() |
boolean |
isNullAt(int i)
Returns true if value at column `i` is NULL.
|
int |
length()
Returns the number of columns present in this Row.
|
org.apache.spark.sql.catalyst.expressions.Row |
row() |
public static Row create(Object... values)
public static Row create(scala.collection.Seq<Object> values)
public org.apache.spark.sql.catalyst.expressions.Row row()
public int length()
public Object get(int i)
public boolean isNullAt(int i)
public int getInt(int i)
i
as an int. This function will throw an exception if the value
is at i
is not an integer, or if it is null.public long getLong(int i)
i
as a long. This function will throw an exception if the value
is at i
is not a long, or if it is null.public double getDouble(int i)
i
as a double. This function will throw an exception if the
value is at i
is not a double, or if it is null.public boolean getBoolean(int i)
i
as a bool. This function will throw an exception if the value
is at i
is not a boolean, or if it is null.public short getShort(int i)
i
as a short. This function will throw an exception if the value
is at i
is not a short, or if it is null.public byte getByte(int i)
i
as a byte. This function will throw an exception if the value
is at i
is not a byte, or if it is null.public float getFloat(int i)
i
as a float. This function will throw an exception if the value
is at i
is not a float, or if it is null.public String getString(int i)
i
as a String. This function will throw an exception if the
value is at i
is not a String.public boolean canEqual(Object other)
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object