-1
現在我已經找到了「選擇」示例。是否可以運行CQL3查詢「創建表」,「插入」與Astyanax?
或者是否有可能與例如MutationBatch?
MutationBatch m = keyspace.prepareMutationBatch();
ColumnListMutation<String> cfmStandard = m.withRow(MY_CF, ...);
我列族是:
CREATE TABLE my_cf (
... key text,
... timeid timeuuid,
... flag boolean,
... data text,
... PRIMARY KEY (key, timeid));
Astyanax forewer!得到的插入工作:'CqlResult cqlResult = keyspace.prepareQuery(MY_CF).withCql(insertBuilder.toString())。execute()。getResult();'會嘗試創建表,但不太可能這將工作... –
2012-08-14 13:07:04
創建表以相同的方式工作)道歉astyanax傢伙! – 2012-08-16 13:22:45