Beispiel #1
0
 @Override
 public void fromProtoStream(InputStream inputStream) throws IOException {
   DAGCommitStartedProto proto = DAGCommitStartedProto.parseDelimitedFrom(inputStream);
   if (proto == null) {
     throw new IOException("No data found in stream");
   }
   fromProto(proto);
 }
Beispiel #2
0
 public void fromProto(DAGCommitStartedProto proto) {
   this.dagID = TezDAGID.fromString(proto.getDagId());
 }
Beispiel #3
0
 public DAGCommitStartedProto toProto() {
   return DAGCommitStartedProto.newBuilder().setDagId(dagID.toString()).build();
 }