The API allows to build your own batch through building a query I do not use that, neither counter columns. I do not build a query, I create a CQL like: String batchInsert = "BEGIN BATCH " +
"INSERT INTO xyz( a, b, c, " + " VALUES ( ?, ?, ?) " + "INSERT INTO def(a, b, ,c," + " VALUES ( ?, ?, ?) " + "APPLY BATCH"; PreparedStatement prBatchInsert = session.prepare(batchInsert); statement.setConsistencyLevel(ConsistencyLevel.QUORUM); BoundStatement query = prBatchInsert.bind(1,2,3, 1,2,3); session.execute(query); I got session through this: cluster = Cluster.builder().addContactPoint(getInitParameter("cassandraCluster")) .withRetryPolicy(DowngradingConsistencyRetryPolicy.INSTANCE ).build(); session = cluster.connect(getInitParameter("keyspace")); I have queries that i have begin unlogged batch instead of begin batch Hopefully it helps On Wed, Feb 13, 2013 at 12:23 PM, Drew Kutcharian <d...@venarc.com> wrote: > @Shahryar/Gabriel > I know the source code is nicely documented, but I couldn't find much info > on: > 1. Creating/submitting atomic/non-atomic batches. > 2. Handling Counter columns > Do you have any examples for that? > > @Edward > I was under impression that client-dev mailing list was to be used by the > developers/committers of the client libs and each client has their own > mailing list such as hector, but I'm not sure there exist a mailing list > for DataStax's java-driver. > > > -- Drew > > > > On Feb 13, 2013, at 8:06 AM, Edward Capriolo <edlinuxg...@gmail.com> > wrote: > > > Just an FYI. More appropriate for the client-dev list. > > > > On Wed, Feb 13, 2013 at 10:37 AM, Gabriel Ciuloaica > > <gciuloa...@gmail.com> wrote: > >> Code has good documentation and also the example module has enough > sample > >> code to help you started. > >> > >> --Gabi > >> > >> On 2/13/13 5:31 PM, Shahryar Sedghi wrote: > >> > >> Source code has enough documentation in it, apparently this is how they > do > >> it with new stuff. Start with Custer class, it tells you how to write. > If > >> you still had problem let me know, I can give you sample code. > >> > >> > >> On Tue, Feb 12, 2013 at 9:19 PM, Drew Kutcharian <d...@venarc.com> > wrote: > >>> > >>> Are there any documentation/examples available for DataStax java-driver > >>> besides what's in the GitHub repo? > >>> > >>> -- Drew > >> > >> > >> > >> > >> -- > >> "Life is what happens while you are making other plans." ~ John Lennon > >> > >> > > -- "Life is what happens while you are making other plans." ~ John Lennon