Class CQLD4PreparedStmtDiagnostics

java.lang.Object
io.nosqlbench.adapter.cqld4.diagnostics.CQLD4PreparedStmtDiagnostics

public class CQLD4PreparedStmtDiagnostics extends Object
This should only be used when there is an exception thrown by some higher level logic. The purpose of this class is to do a more thorough job of checking each step of binding values to a prepared statement, and to provide useful feedback to the user explaining more specifically what the problem was that caused the original error to be thrown.
  • Constructor Details

    • CQLD4PreparedStmtDiagnostics

      public CQLD4PreparedStmtDiagnostics()
  • Method Details

    • bindStatement

      public static com.datastax.oss.driver.api.core.cql.BoundStatement bindStatement(com.datastax.oss.driver.api.core.cql.BoundStatement bound, com.datastax.oss.driver.api.core.CqlIdentifier colname, Object colval, com.datastax.oss.driver.api.core.type.DataType coltype)
    • rebindWithDiagnostics

      public static Cqld4CqlPreparedStatement rebindWithDiagnostics(com.datastax.oss.driver.api.core.cql.PreparedStatement preparedStmt, LongFunction<Object[]> fieldsF, long cycle, Exception exception)