com.google.protobuf.CodedInputStream# readMessage ( ) 源码实例Demo

下面列出了com.google.protobuf.CodedInputStream# readMessage ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: tez   文件: DAGCommitStartedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  DAGCommitStartedProto proto = inputStream.readMessage(DAGCommitStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码2 项目: bazel   文件: MessageLiteCodec.java

@Override
public MessageLite deserialize(DeserializationContext unusedContext, CodedInputStream codedIn)
    throws IOException, SerializationException {
  // Don't hold on to full byte array when constructing this proto.
  codedIn.enableAliasing(false);
  try {
    MessageLite.Builder builder = builderSupplier.get();
    codedIn.readMessage(builder, ExtensionRegistryLite.getEmptyRegistry());
    return builder.build();
  } catch (InvalidProtocolBufferException e) {
    throw new SerializationException("Failed to parse proto of type " + type, e);
  } finally {
    codedIn.enableAliasing(true);
  }
}
 
源代码3 项目: tez   文件: AMLaunchedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  AMLaunchedProto proto = inputStream.readMessage(AMLaunchedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码4 项目: tez   文件: ContainerStoppedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  ContainerStoppedProto proto = inputStream.readMessage(ContainerStoppedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  VertexGroupCommitStartedProto proto = inputStream.readMessage(VertexGroupCommitStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码6 项目: tez   文件: VertexCommitStartedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  VertexCommitStartedProto proto = inputStream.readMessage(VertexCommitStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码7 项目: tez   文件: VertexFinishedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  VertexFinishedProto proto = inputStream.readMessage(VertexFinishedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码8 项目: tez   文件: AMStartedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  AMStartedProto proto = inputStream.readMessage(AMStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码9 项目: tez   文件: DAGFinishedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  DAGFinishedProto proto = inputStream.readMessage(DAGFinishedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码10 项目: tez   文件: TaskFinishedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  TaskFinishedProto proto = inputStream.readMessage(TaskFinishedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码11 项目: tez   文件: DAGKillRequestEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  DAGKillRequestProto proto = inputStream.readMessage(DAGKillRequestProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码12 项目: tez   文件: DAGSubmittedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  DAGSubmittedProto proto = inputStream.readMessage(DAGSubmittedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码13 项目: tez   文件: DAGInitializedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  DAGInitializedProto proto = inputStream.readMessage(DAGInitializedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码14 项目: tez   文件: VertexConfigurationDoneEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  VertexConfigurationDoneProto proto = inputStream.readMessage(VertexConfigurationDoneProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码15 项目: tez   文件: DAGStartedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  DAGStartedProto proto = inputStream.readMessage(DAGStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码16 项目: tez   文件: TaskStartedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  TaskStartedProto proto = inputStream.readMessage(TaskStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码17 项目: tez   文件: VertexInitializedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  VertexInitializedProto proto = inputStream.readMessage(VertexInitializedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码18 项目: tez   文件: VertexStartedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  VertexStartedProto proto = inputStream.readMessage(VertexStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  VertexGroupCommitFinishedProto proto = inputStream.readMessage(VertexGroupCommitFinishedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}
 
源代码20 项目: tez   文件: TaskAttemptStartedEvent.java

@Override
public void fromProtoStream(CodedInputStream inputStream) throws IOException {
  TaskAttemptStartedProto proto = inputStream.readMessage(TaskAttemptStartedProto.PARSER, null);
  if (proto == null) {
    throw new IOException("No data found in stream");
  }
  fromProto(proto);
}