Class StargateBridgeGrpc.StargateBridgeImplBase

java.lang.Object
io.stargate.bridge.proto.StargateBridgeGrpc.StargateBridgeImplBase
All Implemented Interfaces:
io.grpc.BindableService
Enclosing class:
StargateBridgeGrpc

public abstract static class StargateBridgeGrpc.StargateBridgeImplBase extends Object implements io.grpc.BindableService
 The gPRC API used by Stargate services to interact with the persistence backend.
 
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    authorizeSchemaReads(io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsRequest request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsResponse> responseObserver)
    Checks whether the client is authorized to describe one or more schema elements.
    io.grpc.ServerServiceDefinition
     
    void
    describeKeyspace(io.stargate.bridge.proto.Schema.DescribeKeyspaceQuery request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe> responseObserver)
    Similar to CQL "DESCRIBE KEYSPACE".
    void
    executeBatch(io.stargate.bridge.proto.QueryOuterClass.Batch request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.QueryOuterClass.Response> responseObserver)
    Executes a batch of CQL queries.
    void
    executeQuery(io.stargate.bridge.proto.QueryOuterClass.Query request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.QueryOuterClass.Response> responseObserver)
    Executes a single CQL query.
    void
    executeQueryWithSchema(io.stargate.bridge.proto.Schema.QueryWithSchema request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.QueryWithSchemaResponse> responseObserver)
    Executes a single CQL query, assuming that a keyspace with the given version hash exists on the bridge side.
    void
    getSupportedFeatures(io.stargate.bridge.proto.Schema.SupportedFeaturesRequest request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.SupportedFeaturesResponse> responseObserver)
    Checks which features are supported by the persistence backend.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StargateBridgeImplBase

      public StargateBridgeImplBase()
  • Method Details

    • executeQuery

      public void executeQuery(io.stargate.bridge.proto.QueryOuterClass.Query request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.QueryOuterClass.Response> responseObserver)
       Executes a single CQL query.
       
    • executeQueryWithSchema

      public void executeQueryWithSchema(io.stargate.bridge.proto.Schema.QueryWithSchema request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.QueryWithSchemaResponse> responseObserver)
       Executes a single CQL query, assuming that a keyspace with the given version hash exists on the
       bridge side.
       This is an optimization when the client builds a query based on a keyspace's contents: with
       this operation, it can use its local version of the keyspace (therefore avoiding an extra
       network hop to fetch it), and execute the query optimistically. If the keyspace has changed,
       the bridge will reply with the new version, allowing the client to retry.
       
    • executeBatch

      public void executeBatch(io.stargate.bridge.proto.QueryOuterClass.Batch request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.QueryOuterClass.Response> responseObserver)
       Executes a batch of CQL queries.
       
    • describeKeyspace

      public void describeKeyspace(io.stargate.bridge.proto.Schema.DescribeKeyspaceQuery request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe> responseObserver)
       Similar to CQL "DESCRIBE KEYSPACE".
       Note that this operation does not perform any authorization check. The rationale is that, most
       of the time, client services use schema metadata to build another query that will be
       immediately executed with `ExecuteQuery` (which does check authorization).
       If that is not the case (e.g. you return the metadata directly to the client), you can check
       authorization explicitly with `AuthorizeSchemaReads`.
       
    • authorizeSchemaReads

      public void authorizeSchemaReads(io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsRequest request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsResponse> responseObserver)
       Checks whether the client is authorized to describe one or more schema elements.
       
    • getSupportedFeatures

      public void getSupportedFeatures(io.stargate.bridge.proto.Schema.SupportedFeaturesRequest request, io.grpc.stub.StreamObserver<io.stargate.bridge.proto.Schema.SupportedFeaturesResponse> responseObserver)
       Checks which features are supported by the persistence backend.
       
    • bindService

      public io.grpc.ServerServiceDefinition bindService()
      Specified by:
      bindService in interface io.grpc.BindableService