| 12345678910111213141516171819202122232425 |
- create class if not exists /test/sequence (
-
- v_varchar varchar,
- v_text text,
- v_int int,
- v_bigint bigint,
- v_smalldouble double,
- v_double double,
- v_float float,
- v_bool bool,
-
- indexes(v_varchar, v_text, v_int, v_bigint, v_double, v_float, v_smalldouble, v_bool),
- keys(v_varchar, v_text)
- ) with nickname='sequence' and key=seq
- ;
- delete from /test/sequence with version;
- -- cassandra内部的删除操作是异步的,需要等待一段时间,确保删除操作完成
- -- 否则后续插入的数据可能会被立即删除
- /**
- sleep(3s)
- **/
- ;
|