Class ProtobufTranslationImpl.ResponseTranslator
- java.lang.Object
-
- org.apache.calcite.avatica.remote.ProtobufTranslationImpl.ResponseTranslator
-
- Enclosing class:
- ProtobufTranslationImpl
static class ProtobufTranslationImpl.ResponseTranslator extends java.lang.ObjectEncapsulate the logic of transforming a protobuf Response message into the Avatica POJO Response.
-
-
Field Summary
Fields Modifier and Type Field Description private Service.Responseimplprivate com.google.protobuf.Parser<? extends com.google.protobuf.Message>parser
-
Constructor Summary
Constructors Constructor Description ResponseTranslator(com.google.protobuf.Parser<? extends com.google.protobuf.Message> parser, Service.Response impl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Service.Responsetransform(com.google.protobuf.ByteString serializedMessage)
-
-
-
Field Detail
-
parser
private final com.google.protobuf.Parser<? extends com.google.protobuf.Message> parser
-
impl
private final Service.Response impl
-
-
Constructor Detail
-
ResponseTranslator
ResponseTranslator(com.google.protobuf.Parser<? extends com.google.protobuf.Message> parser, Service.Response impl)
-
-
Method Detail
-
transform
public Service.Response transform(com.google.protobuf.ByteString serializedMessage) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
-