Searched refs:nonNegativeMod (Results 1 – 5 of 5) sorted by relevance
43 case key: Long => Utils.nonNegativeMod(key.toInt, numPartitions)44 case _ => Utils.nonNegativeMod(key.hashCode(), numPartitions)
77 Utils.nonNegativeMod(getHashFunction(term), numFeatures)101 val i = Utils.nonNegativeMod(hashFunc(term), numFeatures)
81 Utils.nonNegativeMod(MLlibHashingTF.murmur3Hash(term), numFeatures)
87 case _ => Utils.nonNegativeMod(key.hashCode, numPartitions)
1654 def nonNegativeMod(x: Int, mod: Int): Int = { method