コード例 #1
0
 @Override
 public M createInitialMessage() {
   return typeOps.createZero();
 }
コード例 #2
0
 @Override
 public void combine(WritableComparable vertexIndex, M originalMessage, M messageToCombine) {
   if (originalMessage.compareTo(messageToCombine) < 0) {
     typeOps.set(originalMessage, messageToCombine);
   }
 }