Class GCPSpannerUpdateDatabaseDdlOp
java.lang.Object
io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerBaseOp<Long,Void>
io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerUpdateDatabaseDdlOp
- All Implemented Interfaces:
CycleOp<Void>,LongFunction<Void>
This class represents an operation to update 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
ConstructorsConstructorDescriptionGCPSpannerUpdateDatabaseDdlOp(com.google.cloud.spanner.Spanner searchIndexClient, Long requestParam, String createTableStatement, com.google.cloud.spanner.DatabaseAdminClient dbAdminClient, com.google.cloud.spanner.Database db) Constructs a new GCPSpannerUpdateDatabaseDdlOp. -
Method Summary
Methods inherited from class io.nosqlbench.adapter.gcpspanner.ops.GCPSpannerBaseOp
apply, toString
-
Constructor Details
-
GCPSpannerUpdateDatabaseDdlOp
public GCPSpannerUpdateDatabaseDdlOp(com.google.cloud.spanner.Spanner searchIndexClient, Long requestParam, String createTableStatement, com.google.cloud.spanner.DatabaseAdminClient dbAdminClient, com.google.cloud.spanner.Database db) Constructs a new GCPSpannerUpdateDatabaseDdlOp.- Parameters:
searchIndexClient- the Spanner clientrequestParam- the request parametercreateTableStatement- the SQL statement to create the tabledbAdminClient- the DatabaseAdminClient to execute the DDL updatedb- the Database object representing the target database
-
-
Method Details
-
applyOp
Applies the DDL update 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
-