Class JsonService
java.lang.Object
org.apache.calcite.avatica.remote.AbstractService
org.apache.calcite.avatica.remote.JsonService
- All Implemented Interfaces:
Service
- Direct Known Subclasses:
LocalJsonService,MockJsonService,RemoteService
Implementation of
Service
that encodes requests and responses as JSON.-
Nested Class Summary
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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringDerived class should implement this method to transport requests and responses to and from the peer service.apply(Service.CatalogsRequest request) apply(Service.CloseConnectionRequest request) apply(Service.CloseStatementRequest request) apply(Service.ColumnsRequest request) apply(Service.CommitRequest request) apply(Service.ConnectionSyncRequest request) apply(Service.CreateStatementRequest request) apply(Service.DatabasePropertyRequest request) apply(Service.ExecuteBatchRequest request) apply(Service.ExecuteRequest request) apply(Service.FetchRequest request) apply(Service.OpenConnectionRequest request) apply(Service.PrepareAndExecuteRequest request) apply(Service.PrepareRequest request) apply(Service.RollbackRequest request) apply(Service.SchemasRequest request) apply(Service.SyncResultsRequest request) apply(Service.TablesRequest request) apply(Service.TableTypesRequest request) apply(Service.TypeInfoRequest request) protected static <T> Tprotected static <T> Stringencode(T request) protected RuntimeExceptionMethods inherited from class org.apache.calcite.avatica.remote.AbstractService
setRpcMetadata
-
Field Details
-
MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Details
-
JsonService
public JsonService()
-
-
Method Details
-
apply
Derived class should implement this method to transport requests and responses to and from the peer service. -
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
handle
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-