public static String batchQueryGenerator ( List < String > statements ) { StringBuilder sb = new StringBuilder ( "BEGIN BATCH \n" ) ; for ( String statement : statements ) { sb . append ( statement ) . append ( "\n" ) ; } sb . append ( " APPLY BATCH;" ) ; return sb . toString ( ) ; }
Returns a CQL batch query wrapping the given statements .