Package org.apache.giraph.comm

Examples of org.apache.giraph.comm.GlobalCommType


  public void acceptReducedValues(
      DataInput reducedValuesInput) throws IOException {
    int numReducers = reducedValuesInput.readInt();
    for (int i = 0; i < numReducers; i++) {
      String name = reducedValuesInput.readUTF();
      GlobalCommType type =
          GlobalCommType.values()[reducedValuesInput.readByte()];
      if (type != GlobalCommType.REDUCED_VALUE) {
        throw new IllegalStateException(
            "SendReducedToMasterRequest received " + type);
      }
View Full Code Here


        serverData.getOwnerAggregatorData();
    try {
      int num = input.readInt();
      for (int i = 0; i < num; i++) {
        String name = input.readUTF();
        GlobalCommType type = GlobalCommType.values()[input.readByte()];
        if (type == GlobalCommType.SPECIAL_COUNT) {
          LongWritable value = new LongWritable();
          value.readFields(input);
          aggregatorData.receivedRequestCountFromWorker(
              value.get(),
View Full Code Here

    AllAggregatorServerData aggregatorData = serverData.getAllAggregatorData();
    try {
      int num = input.readInt();
      for (int i = 0; i < num; i++) {
        String name = input.readUTF();
        GlobalCommType type = GlobalCommType.values()[input.readByte()];
        Writable value = WritableUtils.readWritableObject(input, conf);
        if (type == GlobalCommType.SPECIAL_COUNT) {
          aggregatorData.receivedRequestCountFromWorker(
              ((LongWritable) value).get(),
              getSenderTaskId());
View Full Code Here

    AllAggregatorServerData aggregatorData = serverData.getAllAggregatorData();
    try {
      int num = input.readInt();
      for (int i = 0; i < num; i++) {
        String name = input.readUTF();
        GlobalCommType type = GlobalCommType.values()[input.readByte()];
        Writable value = WritableUtils.readWritableObject(input, conf);
        if (type == GlobalCommType.SPECIAL_COUNT) {
          aggregatorData.receivedRequestCountFromMaster(
              ((LongWritable) value).get(),
              getSenderTaskId());
View Full Code Here

TOP

Related Classes of org.apache.giraph.comm.GlobalCommType

Copyright © 2018 www.massapicom. 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.