@Test public void testAddUpdate() { BatchUpdateGroup group = new BatchUpdateGroup(getSession(), Executors.newSingleThreadExecutor()); group.addUpdate(QueryBuilder.insertInto("foo").value("bar", "baz")); assertEquals(1, group.getBatchStatement().getStatements().size()); }
public void addUpdate(Statement statement) { batchStatement.add(statement); }
BatchUpdateGroup implements UpdateGroup { public void addUpdate(Statement statement) { batchStatement.add(statement); } }
BatchUpdateGroup implements UpdateGroup { public void addUpdate(Statement statement) { batchStatement.add(statement); } BatchUpdateGroup(Session session, Executor executor);  BatchUpdateGroup(Session session, BatchStatement batchStatement, Executor executor);  BatchUpdateGroup(Session session, BatchStatement.Type batchType, Executor executor); }
BatchUpdateGroup implements UpdateGroup { public void addUpdate(Statement statement) { batchStatement.add(statement); } BatchUpdateGroup(Session session, Executor executor);  BatchUpdateGroup(Session session, BatchStatement batchStatement, Executor executor);  BatchUpdateGroup(Session session, BatchStatement.Type batchType, Executor executor); void addUpdate(Statement statement); @Override void complete(); @Override ListenableFuture<Void> completeAsync(); BatchStatement getBatchStatement(); }
BatchUpdateGroup implements UpdateGroup { public void addUpdate(Statement statement) { batchStatement.add(statement); } BatchUpdateGroup(Session session, Executor executor);  BatchUpdateGroup(Session session, BatchStatement batchStatement, Executor executor);  BatchUpdateGroup(Session session, BatchStatement.Type batchType, Executor executor); void addUpdate(Statement statement); @Override void complete(); @Override ListenableFuture<Void> completeAsync(); BatchStatement getBatchStatement();  }