vtgate.begin();
String insertSql = "insert into vtgate_test "
+ "(id, name, age, percent, datetime_col, timestamp_col, date_col, time_col, keyspace_id) "
+ "values (:id, :name, :age, :percent, :datetime_col, :timestamp_col, :date_col, :time_col, :keyspace_id)";
for (int i = startId; i < startId + count; i++) {
KeyspaceId kid = testEnv.getAllKeyspaceIds().get(i % testEnv.getAllKeyspaceIds().size());
Query query = new QueryBuilder(insertSql, testEnv.keyspace, "master")
.addBindVar(BindVariable.forULong("id", UnsignedLong.valueOf("" + i)))
.addBindVar(BindVariable.forBytes("name", ("name_" + i).getBytes()))
.addBindVar(BindVariable.forInt("age", i * 2))
.addBindVar(BindVariable.forDouble("percent", new Double(i / 100.0)))
.addBindVar(BindVariable.forULong("keyspace_id", (UnsignedLong) kid.getId()))
.addBindVar(BindVariable.forDateTime("datetime_col", dateTime))
.addBindVar(BindVariable.forDateTime("timestamp_col", dateTime))
.addBindVar(BindVariable.forDate("date_col", dateTime))
.addBindVar(BindVariable.forTime("time_col", dateTime))
.addKeyspaceId(kid)