aboutsummaryrefslogtreecommitdiff
path: root/examples/src
diff options
context:
space:
mode:
authorzsxwing <zsxwing@gmail.com>2014-06-08 14:18:52 -0700
committerReynold Xin <rxin@apache.org>2014-06-08 14:18:52 -0700
commita71c6d1cf0bbc027f633a65042191cf2201330d6 (patch)
tree53eefb99ab7e0493b9c534e713c657826498e260 /examples/src
parentee96e9406613e621837360b15c34ea7c7220a7a3 (diff)
downloadspark-a71c6d1cf0bbc027f633a65042191cf2201330d6.tar.gz
spark-a71c6d1cf0bbc027f633a65042191cf2201330d6.tar.bz2
spark-a71c6d1cf0bbc027f633a65042191cf2201330d6.zip
SPARK-1628: Add missing hashCode methods in Partitioner subclasses
JIRA: https://issues.apache.org/jira/browse/SPARK-1628 Added `hashCode` in HashPartitioner, RangePartitioner, PythonPartitioner and PageRankUtils.CustomPartitioner. Author: zsxwing <zsxwing@gmail.com> Closes #549 from zsxwing/SPARK-1628 and squashes the following commits: 2620936 [zsxwing] SPARK-1628: Add missing hashCode methods in Partitioner subclasses
Diffstat (limited to 'examples/src')
-rw-r--r--examples/src/main/scala/org/apache/spark/examples/bagel/PageRankUtils.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/src/main/scala/org/apache/spark/examples/bagel/PageRankUtils.scala b/examples/src/main/scala/org/apache/spark/examples/bagel/PageRankUtils.scala
index b97cb8fb02..e06f4dcd54 100644
--- a/examples/src/main/scala/org/apache/spark/examples/bagel/PageRankUtils.scala
+++ b/examples/src/main/scala/org/apache/spark/examples/bagel/PageRankUtils.scala
@@ -124,4 +124,6 @@ class CustomPartitioner(partitions: Int) extends Partitioner {
c.numPartitions == numPartitions
case _ => false
}
+
+ override def hashCode: Int = numPartitions
}