Class Rating
Object
org.apache.spark.mllib.recommendation.Rating
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
A more compact class to represent a rating than Tuple3[Int, Int, Double].
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
Rating
public Rating(int user, int product, double rating)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3) -
toString
-
user
public int user() -
product
public int product() -
rating
public double rating()
-