20 #include <ndb_global.h>
24 #include <NDBT_Tables.hpp>
27 #include <HugoCalculator.hpp>
31 int main(
int argc,
const char** argv)
37 const char* _tableName = NULL;
40 {
"row",
'r', arg_integer, &_row,
"The row number",
"row" },
41 {
"column",
'c', arg_integer, &_column,
"The column id",
"column" },
42 {
"updates",
'u', arg_integer, &_updates,
"# of updates",
"updates" }
45 int num_args =
sizeof(args) /
sizeof(args[0]);
48 if(getarg(args, num_args, argc, argv, &optind) || argv[optind] == NULL) {
49 arg_printusage(args, num_args, argv[0],
"table name\n");
50 return NDBT_WRONGARGS;
53 if (argv[optind] != NULL)
54 _tableName = argv[optind];
60 g_info <<
"Table " << _tableName << endl
61 <<
"Row: " << _row <<
", "
62 <<
"Column(" << attribute->
getName() <<
")"
63 <<
"[" << attribute->
getType() <<
"]"
64 <<
", Updates: " << _updates
69 g_info <<
"Value: " << calc.calcValue(_row, _column, _updates, buf)