Java 类org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptIdProto 实例源码

项目:hadoop    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:aliyun-oss-hadoop-fs    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:big-c    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:big-c    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:hadoop-plus    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-plus    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:FlexMap    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:FlexMap    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:hops    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:hops    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:hadoop-TCP    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-TCP    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:hardfs    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:hardfs    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:hadoop-on-lustre2    文件:TaskReportPBImpl.java   
private void initRunningAttempts() {
  if (this.runningAttempts != null) {
    return;
  }
  TaskReportProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskAttemptIdProto> list = p.getRunningAttemptsList();
  this.runningAttempts = new ArrayList<TaskAttemptId>();

  for (TaskAttemptIdProto c : list) {
    this.runningAttempts.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-on-lustre2    文件:TaskReportPBImpl.java   
private void addRunningAttemptsToProto() {
  maybeInitBuilder();
  builder.clearRunningAttempts();
  if (runningAttempts == null)
    return;
  Iterable<TaskAttemptIdProto> iterable = new Iterable<TaskAttemptIdProto>() {
    @Override
    public Iterator<TaskAttemptIdProto> iterator() {
      return new Iterator<TaskAttemptIdProto>() {

        Iterator<TaskAttemptId> iter = runningAttempts.iterator();

        @Override
        public boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public TaskAttemptIdProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public void remove() {
          throw new UnsupportedOperationException();

        }
      };

    }
  };
  builder.addAllRunningAttempts(iterable);
}
项目:hadoop    文件:GetDiagnosticsRequestPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:hadoop    文件:GetDiagnosticsRequestPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}
项目:hadoop    文件:GetTaskAttemptReportRequestPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:hadoop    文件:GetTaskAttemptReportRequestPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}
项目:hadoop    文件:FailTaskAttemptRequestPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:hadoop    文件:FailTaskAttemptRequestPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}
项目:hadoop    文件:KillTaskAttemptRequestPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:hadoop    文件:KillTaskAttemptRequestPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}
项目:hadoop    文件:TaskAttemptIdPBImpl.java   
public TaskAttemptIdPBImpl() {
  builder = TaskAttemptIdProto.newBuilder();
}
项目:hadoop    文件:TaskAttemptIdPBImpl.java   
public TaskAttemptIdPBImpl(TaskAttemptIdProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop    文件:TaskAttemptIdPBImpl.java   
public synchronized TaskAttemptIdProto getProto() {
    mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop    文件:TaskAttemptIdPBImpl.java   
private synchronized void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = TaskAttemptIdProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hadoop    文件:TaskReportPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:hadoop    文件:TaskReportPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}
项目:hadoop    文件:TaskAttemptCompletionEventPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:hadoop    文件:TaskAttemptCompletionEventPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}
项目:hadoop    文件:TaskAttemptReportPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:hadoop    文件:TaskAttemptReportPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:GetDiagnosticsRequestPBImpl.java   
private TaskAttemptIdPBImpl convertFromProtoFormat(TaskAttemptIdProto p) {
  return new TaskAttemptIdPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetDiagnosticsRequestPBImpl.java   
private TaskAttemptIdProto convertToProtoFormat(TaskAttemptId t) {
  return ((TaskAttemptIdPBImpl)t).getProto();
}