use of org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto in project hadoop by apache.
the class AllocateRequestPBImpl method initAsks.
private void initAsks() {
if (this.ask != null) {
return;
}
AllocateRequestProtoOrBuilder p = viaProto ? proto : builder;
List<ResourceRequestProto> list = p.getAskList();
this.ask = new ArrayList<ResourceRequest>();
for (ResourceRequestProto c : list) {
this.ask.add(convertFromProtoFormat(c));
}
}
Aggregations