diff options
author | Frank Dai <soulmachine@gmail.com> | 2014-01-14 18:56:11 +0800 |
---|---|---|
committer | Frank Dai <soulmachine@gmail.com> | 2014-01-14 18:56:11 +0800 |
commit | 57fcfc75b3583eb99564fc0d1bb5f49aea53f684 (patch) | |
tree | 2633162603f26905484f808cd13d12fae4fa48ee /mllib | |
parent | a3da468d8b99565a966745e09830eaa768a9c267 (diff) | |
download | spark-57fcfc75b3583eb99564fc0d1bb5f49aea53f684.tar.gz spark-57fcfc75b3583eb99564fc0d1bb5f49aea53f684.tar.bz2 spark-57fcfc75b3583eb99564fc0d1bb5f49aea53f684.zip |
Added parentheses for that getDouble() also has side effect
Diffstat (limited to 'mllib')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala b/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala index f3656f62c7..efc0eb9353 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala @@ -217,7 +217,7 @@ class PythonMLLibAPI extends Serializable { bb.order(ByteOrder.nativeOrder()) val user = bb.getInt() val product = bb.getInt() - val rating = bb.getDouble + val rating = bb.getDouble() new Rating(user, product, rating) } |