datastax/java-driver — pull request #220 by mspiegel (2014-09-03 19:10:54+00:00)
Title: Add size() method to BatchStatement class.

Since BatchStatement#getStatements() returns an immutable copy,
and that is probably a good design decision, then let's add a
size() method so that we don't need to create a copy by calling
batch.getStatements().size() in order to get the current number
of statements in the batch.