Java Code Examples for com.google.protobuf.CodedInputStream#readMessage()
The following examples show how to use
com.google.protobuf.CodedInputStream#readMessage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DAGKillRequestEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 2
Source File: TaskAttemptStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 3
Source File: VertexGroupCommitFinishedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 4
Source File: VertexStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 5
Source File: VertexInitializedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 6
Source File: TaskStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 7
Source File: DAGStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 8
Source File: VertexConfigurationDoneEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 9
Source File: DAGInitializedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 10
Source File: DAGSubmittedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 11
Source File: DAGCommitStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 12
Source File: TaskFinishedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 13
Source File: DAGFinishedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 14
Source File: AMStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 15
Source File: VertexFinishedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 16
Source File: VertexCommitStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 17
Source File: VertexGroupCommitStartedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 18
Source File: ContainerStoppedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 19
Source File: AMLaunchedEvent.java From tez with Apache License 2.0 | 5 votes |
@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); }
Example 20
Source File: MessageLiteCodec.java From bazel with Apache License 2.0 | 5 votes |
@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); } }