Object
org.apache.spark.mllib.recommendation.Rating
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product, scala.Serializable

public class Rating extends Object implements scala.Product, scala.Serializable
A more compact class to represent a rating than Tuple3[Int, Int, Double].
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Rating(int user, int product, double rating)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract static R
    apply(T1 v1, T2 v2, T3 v3)
     
    int
     
    double
     
    static String
     
    int
     

    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, 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

      public static String toString()
    • user

      public int user()
    • product

      public int product()
    • rating

      public double rating()