ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From javadevmtl <java.dev....@gmail.com>
Subject Re: Is invokeAll() considered a batch operation?
Date Tue, 01 Sep 2015 18:41:47 GMT
Or can I maybe use a hashcode function that creates a long of of the key and
use that as the key?

Something like...

public static long hash(String string) {
  long h = 1125899906842597L; // prime
  int len = string.length();

  for (int i = 0; i < len; i++) {
    h = 31*h + string.charAt(i);
  }
  return h;
}



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Is-invokeAll-considered-a-batch-operation-tp1220p1248.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message