Class StargateBridgeClient

java.lang.Object
io.stargate.bridge.proto.StargateBridgeClient
All Implemented Interfaces:
io.quarkus.grpc.MutinyClient<MutinyStargateBridgeGrpc.MutinyStargateBridgeStub>, io.quarkus.grpc.MutinyService, StargateBridge

@Generated(value="by Mutiny Grpc generator", comments="Source: bridge.proto") public class StargateBridgeClient extends Object implements StargateBridge, io.quarkus.grpc.MutinyClient<MutinyStargateBridgeGrpc.MutinyStargateBridgeStub>
  • Constructor Details

  • Method Details

    • newInstanceWithStub

      Specified by:
      newInstanceWithStub in interface io.quarkus.grpc.MutinyClient<MutinyStargateBridgeGrpc.MutinyStargateBridgeStub>
    • getStub

      Specified by:
      getStub in interface io.quarkus.grpc.MutinyClient<MutinyStargateBridgeGrpc.MutinyStargateBridgeStub>
    • executeQuery

      public io.smallrye.mutiny.Uni<io.stargate.bridge.proto.QueryOuterClass.Response> executeQuery(io.stargate.bridge.proto.QueryOuterClass.Query request)
      Description copied from interface: StargateBridge
        Executes a single CQL query.
       
      Specified by:
      executeQuery in interface StargateBridge
    • executeQueryWithSchema

      public io.smallrye.mutiny.Uni<io.stargate.bridge.proto.Schema.QueryWithSchemaResponse> executeQueryWithSchema(io.stargate.bridge.proto.Schema.QueryWithSchema request)
      Description copied from interface: StargateBridge
        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.
       
      Specified by:
      executeQueryWithSchema in interface StargateBridge
    • executeBatch

      public io.smallrye.mutiny.Uni<io.stargate.bridge.proto.QueryOuterClass.Response> executeBatch(io.stargate.bridge.proto.QueryOuterClass.Batch request)
      Description copied from interface: StargateBridge
        Executes a batch of CQL queries.
       
      Specified by:
      executeBatch in interface StargateBridge
    • describeKeyspace

      public io.smallrye.mutiny.Uni<io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe> describeKeyspace(io.stargate.bridge.proto.Schema.DescribeKeyspaceQuery request)
      Description copied from interface: StargateBridge
        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`.
       
      Specified by:
      describeKeyspace in interface StargateBridge
    • authorizeSchemaReads

      public io.smallrye.mutiny.Uni<io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsResponse> authorizeSchemaReads(io.stargate.bridge.proto.Schema.AuthorizeSchemaReadsRequest request)
      Description copied from interface: StargateBridge
        Checks whether the client is authorized to describe one or more schema elements.
       
      Specified by:
      authorizeSchemaReads in interface StargateBridge
    • getSupportedFeatures

      public io.smallrye.mutiny.Uni<io.stargate.bridge.proto.Schema.SupportedFeaturesResponse> getSupportedFeatures(io.stargate.bridge.proto.Schema.SupportedFeaturesRequest request)
      Description copied from interface: StargateBridge
        Checks which features are supported by the persistence backend.
       
      Specified by:
      getSupportedFeatures in interface StargateBridge