Java 类org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptCompletionEventProto 实例源码
项目:hadoop
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:hadoop
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:aliyun-oss-hadoop-fs
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:aliyun-oss-hadoop-fs
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:big-c
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:big-c
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:hadoop-2.6.0-cdh5.4.3
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:hadoop-plus
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:hadoop-plus
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:FlexMap
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:FlexMap
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:hops
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:hops
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:hadoop-TCP
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:hadoop-TCP
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:hardfs
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:hardfs
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:hadoop-on-lustre2
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void initCompletionEvents() {
if (this.completionEvents != null) {
return;
}
GetTaskAttemptCompletionEventsResponseProtoOrBuilder p = viaProto ? proto : builder;
List<TaskAttemptCompletionEventProto> list = p.getCompletionEventsList();
this.completionEvents = new ArrayList<TaskAttemptCompletionEvent>();
for (TaskAttemptCompletionEventProto c : list) {
this.completionEvents.add(convertFromProtoFormat(c));
}
}
项目:hadoop-on-lustre2
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private void addCompletionEventsToProto() {
maybeInitBuilder();
builder.clearCompletionEvents();
if (completionEvents == null)
return;
Iterable<TaskAttemptCompletionEventProto> iterable = new Iterable<TaskAttemptCompletionEventProto>() {
@Override
public Iterator<TaskAttemptCompletionEventProto> iterator() {
return new Iterator<TaskAttemptCompletionEventProto>() {
Iterator<TaskAttemptCompletionEvent> iter = completionEvents.iterator();
@Override
public boolean hasNext() {
return iter.hasNext();
}
@Override
public TaskAttemptCompletionEventProto next() {
return convertToProtoFormat(iter.next());
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
};
}
};
builder.addAllCompletionEvents(iterable);
}
项目:hadoop
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventPBImpl convertFromProtoFormat(TaskAttemptCompletionEventProto p) {
return new TaskAttemptCompletionEventPBImpl(p);
}
项目:hadoop
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventProto convertToProtoFormat(TaskAttemptCompletionEvent t) {
return ((TaskAttemptCompletionEventPBImpl)t).getProto();
}
项目:hadoop
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventPBImpl() {
builder = TaskAttemptCompletionEventProto.newBuilder();
}
项目:hadoop
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventPBImpl(TaskAttemptCompletionEventProto proto) {
this.proto = proto;
viaProto = true;
}
项目:hadoop
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventProto getProto() {
mergeLocalToProto();
proto = viaProto ? proto : builder.build();
viaProto = true;
return proto;
}
项目:hadoop
文件:TaskAttemptCompletionEventPBImpl.java
private void maybeInitBuilder() {
if (viaProto || builder == null) {
builder = TaskAttemptCompletionEventProto.newBuilder(proto);
}
viaProto = false;
}
项目:aliyun-oss-hadoop-fs
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventPBImpl convertFromProtoFormat(TaskAttemptCompletionEventProto p) {
return new TaskAttemptCompletionEventPBImpl(p);
}
项目:aliyun-oss-hadoop-fs
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventProto convertToProtoFormat(TaskAttemptCompletionEvent t) {
return ((TaskAttemptCompletionEventPBImpl)t).getProto();
}
项目:aliyun-oss-hadoop-fs
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventPBImpl() {
builder = TaskAttemptCompletionEventProto.newBuilder();
}
项目:aliyun-oss-hadoop-fs
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventPBImpl(TaskAttemptCompletionEventProto proto) {
this.proto = proto;
viaProto = true;
}
项目:aliyun-oss-hadoop-fs
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventProto getProto() {
mergeLocalToProto();
proto = viaProto ? proto : builder.build();
viaProto = true;
return proto;
}
项目:aliyun-oss-hadoop-fs
文件:TaskAttemptCompletionEventPBImpl.java
private void maybeInitBuilder() {
if (viaProto || builder == null) {
builder = TaskAttemptCompletionEventProto.newBuilder(proto);
}
viaProto = false;
}
项目:big-c
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventPBImpl convertFromProtoFormat(TaskAttemptCompletionEventProto p) {
return new TaskAttemptCompletionEventPBImpl(p);
}
项目:big-c
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventProto convertToProtoFormat(TaskAttemptCompletionEvent t) {
return ((TaskAttemptCompletionEventPBImpl)t).getProto();
}
项目:big-c
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventPBImpl() {
builder = TaskAttemptCompletionEventProto.newBuilder();
}
项目:big-c
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventPBImpl(TaskAttemptCompletionEventProto proto) {
this.proto = proto;
viaProto = true;
}
项目:big-c
文件:TaskAttemptCompletionEventPBImpl.java
public TaskAttemptCompletionEventProto getProto() {
mergeLocalToProto();
proto = viaProto ? proto : builder.build();
viaProto = true;
return proto;
}
项目:big-c
文件:TaskAttemptCompletionEventPBImpl.java
private void maybeInitBuilder() {
if (viaProto || builder == null) {
builder = TaskAttemptCompletionEventProto.newBuilder(proto);
}
viaProto = false;
}
项目:hadoop-2.6.0-cdh5.4.3
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventPBImpl convertFromProtoFormat(TaskAttemptCompletionEventProto p) {
return new TaskAttemptCompletionEventPBImpl(p);
}
项目:hadoop-2.6.0-cdh5.4.3
文件:GetTaskAttemptCompletionEventsResponsePBImpl.java
private TaskAttemptCompletionEventProto convertToProtoFormat(TaskAttemptCompletionEvent t) {
return ((TaskAttemptCompletionEventPBImpl)t).getProto();
}