Class LocalJsonService
- java.lang.Object
-
- org.apache.calcite.avatica.remote.AbstractService
-
- org.apache.calcite.avatica.remote.JsonService
-
- org.apache.calcite.avatica.remote.LocalJsonService
-
- All Implemented Interfaces:
Service
public class LocalJsonService extends JsonService
Implementation ofServicethat goes to an in-process instance ofService.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.avatica.remote.AbstractService
AbstractService.SerializationType
-
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 Modifier and Type Field Description private Serviceservice-
Fields inherited from class org.apache.calcite.avatica.remote.JsonService
MAPPER
-
-
Constructor Summary
Constructors Constructor Description LocalJsonService(Service service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringapply(java.lang.String 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.JsonService
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, decode, encode, getSerializationType, handle
-
Methods inherited from class org.apache.calcite.avatica.remote.AbstractService
finagle, finagle, finagle, finagle, finagle, finagle, setRpcMetadata
-
-
-
-
Field Detail
-
service
private final Service service
-
-
Constructor Detail
-
LocalJsonService
public LocalJsonService(Service service)
-
-
Method Detail
-
apply
public java.lang.String apply(java.lang.String request)
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
-
-