Skip to content
Snippets Groups Projects
Commit 9e48af6d authored by Ankur Dave's avatar Ankur Dave
Browse files

Remove unused HashUtils class

parent b437ed62
No related branches found
No related tags found
No related merge requests found
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
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment