diff options
author | Ankur Dave <ankurdave@gmail.com> | 2014-01-10 15:22:57 -0800 |
---|---|---|
committer | Ankur Dave <ankurdave@gmail.com> | 2014-01-10 15:22:57 -0800 |
commit | 9e48af6dba5817b7ac35a5bfa5ffe8825960c4c8 (patch) | |
tree | c2c577fc32bd45a58507318a3bf2e353389d9436 /graphx | |
parent | b437ed62a8036566cb5e5d5dba293f94297cfef5 (diff) | |
download | spark-9e48af6dba5817b7ac35a5bfa5ffe8825960c4c8.tar.gz spark-9e48af6dba5817b7ac35a5bfa5ffe8825960c4c8.tar.bz2 spark-9e48af6dba5817b7ac35a5bfa5ffe8825960c4c8.zip |
Remove unused HashUtils class
Diffstat (limited to 'graphx')
-rw-r--r-- | graphx/src/main/scala/org/apache/spark/graphx/util/HashUtils.scala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/graphx/src/main/scala/org/apache/spark/graphx/util/HashUtils.scala b/graphx/src/main/scala/org/apache/spark/graphx/util/HashUtils.scala deleted file mode 100644 index 7a79d33350..0000000000 --- a/graphx/src/main/scala/org/apache/spark/graphx/util/HashUtils.scala +++ /dev/null @@ -1,21 +0,0 @@ -package org.apache.spark.graphx.util - - -object HashUtils { - - /** - * Compute a 64-bit hash value for the given string. - * See http://stackoverflow.com/questions/1660501/what-is-a-good-64bit-hash-function-in-java-for-textual-strings - */ - def hash(str: String): Long = { - var h = 1125899906842597L - val len = str.length - var i = 0 - - while (i < len) { - h = 31 * h + str(i) - i += 1 - } - h - } -} |