Record Class Row
java.lang.Object
java.lang.Record
smile.data.Row
- Record Components:
df- the data frame that the row belongs to.index- the row index.
- All Implemented Interfaces:
Serializable, Tuple
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondf()Returns the value of thedfrecord component.final booleanIndicates whether some other object is "equal to" this one.get(int j) Returns the value at position i.booleangetBoolean(int j) Returns the value at position i as a primitive boolean.bytegetByte(int j) Returns the value at position i as a primitive byte.chargetChar(int j) Returns the value at position i as a primitive byte.doublegetDouble(int j) Returns the value at position i as a primitive double.floatgetFloat(int j) Returns the value at position i as a primitive float.intgetInt(int j) Returns the value at position i as a primitive int.longgetLong(int j) Returns the value at position i as a primitive long.shortgetShort(int j) Returns the value at position i as a primitive short.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleanisNullAt(int j) Checks whether the value at the given position is null.booleanChecks whether the field value is null.schema()Returns the schema of tuple.toString()Returns a string representation of this record class.Methods inherited from interface Tuple
anyNull, apply, apply, get, getArray, getArray, getAs, getAs, getBoolean, getByte, getChar, getDate, getDate, getDateTime, getDateTime, getDecimal, getDecimal, getDouble, getFloat, getInt, getLong, getScale, getScale, getShort, getString, getString, getStruct, getStruct, getTime, getTime, indexOf, length, toArray, toArray, toString, toString
-
Constructor Details
-
Row
-
-
Method Details
-
toString
-
schema
Description copied from interface:TupleReturns the schema of tuple. -
isNullAt
-
isNullAt
-
get
-
getBoolean
public boolean getBoolean(int j) Description copied from interface:TupleReturns the value at position i as a primitive boolean.- Specified by:
getBooleanin interfaceTuple- Parameters:
j- the index of field.- Returns:
- the field value.
-
getChar
-
getByte
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
df
-
index
-