aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphx/src/main/scala/org/apache/spark/graphx/util/HashUtils.scala21
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
- }
-}