Class MockJsonService
java.lang.Object
org.apache.calcite.avatica.remote.AbstractService
org.apache.calcite.avatica.remote.JsonService
org.apache.calcite.avatica.remote.MockJsonService
- All Implemented Interfaces:
Service
Mock implementation of
Service
that encodes its requests and responses as JSON
and looks up responses from a pre-defined map.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory that creates aMockJsonService.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.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 -
Field Summary
Fields inherited from class org.apache.calcite.avatica.remote.JsonService
MAPPER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.calcite.avatica.remote.JsonService
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, decode, encode, handleMethods inherited from class org.apache.calcite.avatica.remote.AbstractService
setRpcMetadata
-
Constructor Details
-
MockJsonService
-
-
Method Details
-
apply
Description copied from class:JsonServiceDerived class should implement this method to transport requests and responses to and from the peer service.- Specified by:
applyin classJsonService
-