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

项目:hadoop    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:hadoop    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:aliyun-oss-hadoop-fs    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:big-c    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:big-c    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:hadoop-plus    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:hadoop-plus    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:FlexMap    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:FlexMap    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:hops    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:hops    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:hadoop-TCP    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:hadoop-TCP    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:hardfs    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:hardfs    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}
项目:hadoop-on-lustre2    文件:CountersPBImpl.java   
private void initCounterGroups() {
  if (this.counterGroups != null) {
    return;
  }
  CountersProtoOrBuilder p = viaProto ? proto : builder;
  List<StringCounterGroupMapProto> list = p.getCounterGroupsList();
  this.counterGroups = new HashMap<String, CounterGroup>();

  for (StringCounterGroupMapProto c : list) {
    this.counterGroups.put(c.getKey(), convertFromProtoFormat(c.getValue()));
  }
}
项目:hadoop-on-lustre2    文件:CountersPBImpl.java   
private void addCounterGroupsToProto() {
  maybeInitBuilder();
  builder.clearCounterGroups();
  if (counterGroups == null)
    return;
  Iterable<StringCounterGroupMapProto> iterable = new Iterable<StringCounterGroupMapProto>() {

    @Override
    public Iterator<StringCounterGroupMapProto> iterator() {
      return new Iterator<StringCounterGroupMapProto>() {

        Iterator<String> keyIter = counterGroups.keySet().iterator();

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

        @Override
        public StringCounterGroupMapProto next() {
          String key = keyIter.next();
          return StringCounterGroupMapProto.newBuilder().setKey(key).setValue(convertToProtoFormat(counterGroups.get(key))).build();
        }

        @Override
        public boolean hasNext() {
          return keyIter.hasNext();
        }
      };
    }
  };
  builder.addAllCounterGroups(iterable);
}