问题
For now I have found just "select" examples.
Or is it possible to do with e.g. MutationBatch?
MutationBatch m = keyspace.prepareMutationBatch();
ColumnListMutation<String> cfmStandard = m.withRow(MY_CF, ...);
my column family is:
CREATE TABLE my_cf (
... key text,
... timeid timeuuid,
... flag boolean,
... data text,
... PRIMARY KEY (key, timeid));
回答1:
worked for inserts and create:
keyspace.prepareQuery(MY_CF).withCql(queryBuilder.toString()).execute();
来源:https://stackoverflow.com/questions/11952724/is-it-possible-to-run-cql3-queries-create-table-insert-into-with-astyanax