Class GCPSpannerDropDatabaseDdlOp

java.lang.Object
io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerBaseOp<Long,Void>
io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerDropDatabaseDdlOp
All Implemented Interfaces:
CycleOp<Void>, LongFunction<Void>

public class GCPSpannerDropDatabaseDdlOp extends GCPSpannerBaseOp<Long,Void>
This class represents an operation to Drop the database DDL (Data Definition Language) in Google Cloud Spanner. It extends the GCPSpannerBaseOp class and provides the implementation for applying the DDL update operation.
  • Constructor Details

    • GCPSpannerDropDatabaseDdlOp

      public GCPSpannerDropDatabaseDdlOp(com.google.cloud.spanner.Spanner searchIndexClient, Long requestParam, String databaseId, com.google.cloud.spanner.DatabaseAdminClient dbAdminClient, com.google.cloud.spanner.Database db)
      Parameters:
      searchIndexClient - the Spanner client
      requestParam - the request parameter
      databaseId - the database ID to be dropped
      dbAdminClient - the DatabaseAdminClient to execute the DDL update
      db - the Database to be dropped
  • Method Details

    • applyOp

      public Void applyOp(long value)
      Applies the DDL drop operation.
      Specified by:
      applyOp in class GCPSpannerBaseOp<Long,Void>
      Parameters:
      value - the value to be used in the operation
      Returns:
      the result of the operation
      Throws:
      RuntimeException - if an error occurs during the operation