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>
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.-
Field Summary
Fields inherited from class io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerBaseOp
apiCall, logger, request, spannerClient -
Constructor Summary
ConstructorsConstructorDescriptionGCPSpannerDropDatabaseDdlOp(com.google.cloud.spanner.Spanner searchIndexClient, Long requestParam, String databaseId, com.google.cloud.spanner.DatabaseAdminClient dbAdminClient, com.google.cloud.spanner.Database db) Constructs a newGCPSpannerUpdateDatabaseDdlOp. -
Method Summary
Methods inherited from class io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerBaseOp
apply, toString
-
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) Constructs a newGCPSpannerUpdateDatabaseDdlOp.- Parameters:
searchIndexClient- theSpannerclientrequestParam- the request parameterdatabaseId- the database ID to be droppeddbAdminClient- theDatabaseAdminClientto execute the DDL updatedb- theDatabaseto be dropped
-
-
Method Details
-
applyOp
Applies the DDL drop operation.- Specified by:
applyOpin classGCPSpannerBaseOp<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
-