Package org.apache.giraph.comm.aggregators

Examples of org.apache.giraph.comm.aggregators.OwnerAggregatorServerData.reduce()


      try {
        boolean sent = requestProcessor.sendReducedValue(entry.getKey(),
            entry.getValue().getCurrentValue());
        if (!sent) {
          // If it's my aggregator, add it directly
          ownerGlobalCommData.reduce(entry.getKey(),
              entry.getValue().getCurrentValue());
        }
      } catch (IOException e) {
        throw new IllegalStateException("finishSuperstep: " +
            "IOException occurred while sending aggregator " +
View Full Code Here


              value.get(),
              getSenderTaskId());
        } else if (type == GlobalCommType.REDUCED_VALUE) {
          Writable value = aggregatorData.createInitialValue(name);
          value.readFields(input);
          aggregatorData.reduce(name, value);
        } else {
          throw new IllegalStateException(
              "SendWorkerAggregatorsRequest received " + type);
        }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.