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

项目:hadoop    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

  for (TaskReportProto c : list) {
    this.taskReports.add(convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:GetTaskReportsResponsePBImpl.java   
private void addTaskReportsToProto() {
  maybeInitBuilder();
  builder.clearTaskReports();
  if (taskReports == null)
    return;
  Iterable<TaskReportProto> iterable = new Iterable<TaskReportProto>() {
    @Override
    public Iterator<TaskReportProto> iterator() {
      return new Iterator<TaskReportProto>() {

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

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

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:big-c    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

  for (TaskReportProto c : list) {
    this.taskReports.add(convertFromProtoFormat(c));
  }
}
项目:big-c    文件:GetTaskReportsResponsePBImpl.java   
private void addTaskReportsToProto() {
  maybeInitBuilder();
  builder.clearTaskReports();
  if (taskReports == null)
    return;
  Iterable<TaskReportProto> iterable = new Iterable<TaskReportProto>() {
    @Override
    public Iterator<TaskReportProto> iterator() {
      return new Iterator<TaskReportProto>() {

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

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

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:hadoop-plus    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

  for (TaskReportProto c : list) {
    this.taskReports.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-plus    文件:GetTaskReportsResponsePBImpl.java   
private void addTaskReportsToProto() {
  maybeInitBuilder();
  builder.clearTaskReports();
  if (taskReports == null)
    return;
  Iterable<TaskReportProto> iterable = new Iterable<TaskReportProto>() {
    @Override
    public Iterator<TaskReportProto> iterator() {
      return new Iterator<TaskReportProto>() {

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:FlexMap    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

  for (TaskReportProto c : list) {
    this.taskReports.add(convertFromProtoFormat(c));
  }
}
项目:FlexMap    文件:GetTaskReportsResponsePBImpl.java   
private void addTaskReportsToProto() {
  maybeInitBuilder();
  builder.clearTaskReports();
  if (taskReports == null)
    return;
  Iterable<TaskReportProto> iterable = new Iterable<TaskReportProto>() {
    @Override
    public Iterator<TaskReportProto> iterator() {
      return new Iterator<TaskReportProto>() {

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:hops    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

  for (TaskReportProto c : list) {
    this.taskReports.add(convertFromProtoFormat(c));
  }
}
项目:hops    文件:GetTaskReportsResponsePBImpl.java   
private void addTaskReportsToProto() {
  maybeInitBuilder();
  builder.clearTaskReports();
  if (taskReports == null)
    return;
  Iterable<TaskReportProto> iterable = new Iterable<TaskReportProto>() {
    @Override
    public Iterator<TaskReportProto> iterator() {
      return new Iterator<TaskReportProto>() {

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:hadoop-TCP    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

  for (TaskReportProto c : list) {
    this.taskReports.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-TCP    文件:GetTaskReportsResponsePBImpl.java   
private void addTaskReportsToProto() {
  maybeInitBuilder();
  builder.clearTaskReports();
  if (taskReports == null)
    return;
  Iterable<TaskReportProto> iterable = new Iterable<TaskReportProto>() {
    @Override
    public Iterator<TaskReportProto> iterator() {
      return new Iterator<TaskReportProto>() {

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:hardfs    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

  for (TaskReportProto c : list) {
    this.taskReports.add(convertFromProtoFormat(c));
  }
}
项目:hardfs    文件:GetTaskReportsResponsePBImpl.java   
private void addTaskReportsToProto() {
  maybeInitBuilder();
  builder.clearTaskReports();
  if (taskReports == null)
    return;
  Iterable<TaskReportProto> iterable = new Iterable<TaskReportProto>() {
    @Override
    public Iterator<TaskReportProto> iterator() {
      return new Iterator<TaskReportProto>() {

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:hadoop-on-lustre2    文件:GetTaskReportsResponsePBImpl.java   
private void initTaskReports() {
  if (this.taskReports != null) {
    return;
  }
  GetTaskReportsResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<TaskReportProto> list = p.getTaskReportsList();
  this.taskReports = new ArrayList<TaskReport>();

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

        Iterator<TaskReport> iter = taskReports.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllTaskReports(iterable);
}
项目:hadoop    文件:GetTaskReportsResponsePBImpl.java   
private TaskReportPBImpl convertFromProtoFormat(TaskReportProto p) {
  return new TaskReportPBImpl(p);
}
项目:hadoop    文件:GetTaskReportsResponsePBImpl.java   
private TaskReportProto convertToProtoFormat(TaskReport t) {
  return ((TaskReportPBImpl)t).getProto();
}
项目:hadoop    文件:GetTaskReportResponsePBImpl.java   
private TaskReportPBImpl convertFromProtoFormat(TaskReportProto p) {
  return new TaskReportPBImpl(p);
}
项目:hadoop    文件:GetTaskReportResponsePBImpl.java   
private TaskReportProto convertToProtoFormat(TaskReport t) {
  return ((TaskReportPBImpl)t).getProto();
}
项目:hadoop    文件:TaskReportPBImpl.java   
public TaskReportPBImpl() {
  builder = TaskReportProto.newBuilder();
}
项目:hadoop    文件:TaskReportPBImpl.java   
public TaskReportPBImpl(TaskReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop    文件:TaskReportPBImpl.java   
public TaskReportProto getProto() {
    mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop    文件:TaskReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = TaskReportProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:aliyun-oss-hadoop-fs    文件:GetTaskReportsResponsePBImpl.java   
private TaskReportPBImpl convertFromProtoFormat(TaskReportProto p) {
  return new TaskReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetTaskReportsResponsePBImpl.java   
private TaskReportProto convertToProtoFormat(TaskReport t) {
  return ((TaskReportPBImpl)t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:GetTaskReportResponsePBImpl.java   
private TaskReportPBImpl convertFromProtoFormat(TaskReportProto p) {
  return new TaskReportPBImpl(p);
}
项目:aliyun-oss-hadoop-fs    文件:GetTaskReportResponsePBImpl.java   
private TaskReportProto convertToProtoFormat(TaskReport t) {
  return ((TaskReportPBImpl)t).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:TaskReportPBImpl.java   
public TaskReportPBImpl() {
  builder = TaskReportProto.newBuilder();
}
项目:aliyun-oss-hadoop-fs    文件:TaskReportPBImpl.java   
public TaskReportPBImpl(TaskReportProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:aliyun-oss-hadoop-fs    文件:TaskReportPBImpl.java   
public TaskReportProto getProto() {
    mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:aliyun-oss-hadoop-fs    文件:TaskReportPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = TaskReportProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:big-c    文件:GetTaskReportsResponsePBImpl.java   
private TaskReportPBImpl convertFromProtoFormat(TaskReportProto p) {
  return new TaskReportPBImpl(p);
}
项目:big-c    文件:GetTaskReportsResponsePBImpl.java   
private TaskReportProto convertToProtoFormat(TaskReport t) {
  return ((TaskReportPBImpl)t).getProto();
}
项目:big-c    文件:GetTaskReportResponsePBImpl.java   
private TaskReportPBImpl convertFromProtoFormat(TaskReportProto p) {
  return new TaskReportPBImpl(p);
}
项目:big-c    文件:GetTaskReportResponsePBImpl.java   
private TaskReportProto convertToProtoFormat(TaskReport t) {
  return ((TaskReportPBImpl)t).getProto();
}