Class MockProtobufService
java.lang.Object
org.apache.calcite.avatica.remote.AbstractService
org.apache.calcite.avatica.remote.ProtobufService
org.apache.calcite.avatica.remote.MockProtobufService
- All Implemented Interfaces:
Service
A mock implementation of ProtobufService for testing.
It performs no serialization of requests and responses.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA factory that instantiates the mock protobuf service.Nested classes/interfaces inherited from interface org.apache.calcite.avatica.remote.Service
Service.Base, Service.CatalogsRequest, Service.CloseConnectionRequest, Service.CloseConnectionResponse, Service.CloseStatementRequest, Service.CloseStatementResponse, Service.ColumnsRequest, Service.CommitRequest, Service.CommitResponse, Service.ConnectionSyncRequest, Service.ConnectionSyncResponse, Service.CreateStatementRequest, Service.CreateStatementResponse, Service.DatabasePropertyRequest, Service.DatabasePropertyResponse, Service.ErrorResponse, Service.ExecuteBatchRequest, Service.ExecuteBatchResponse, Service.ExecuteRequest, Service.ExecuteResponse, Service.Factory, Service.FetchRequest, Service.FetchResponse, Service.OpenConnectionRequest, Service.OpenConnectionResponse, Service.PrepareAndExecuteBatchRequest, Service.PrepareAndExecuteRequest, Service.PrepareRequest, Service.PrepareResponse, Service.Request, Service.Response, Service.ResultSetResponse, Service.RollbackRequest, Service.RollbackResponse, Service.RpcMetadataResponse, Service.SchemasRequest, Service.SyncResultsRequest, Service.SyncResultsResponse, Service.TablesRequest, Service.TableTypesRequest, Service.TypeInfoRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_apply(Service.Request request) Derived class should implement this method to transport requests and responses to and from the peer service.Methods inherited from class org.apache.calcite.avatica.remote.ProtobufService
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, castProtobufMessageMethods inherited from class org.apache.calcite.avatica.remote.AbstractService
setRpcMetadata
-
Constructor Details
-
MockProtobufService
-
-
Method Details
-
_apply
Description copied from class:ProtobufServiceDerived class should implement this method to transport requests and responses to and from the peer service.- Specified by:
_applyin classProtobufService
-