简体   繁体   English

使用TTL的CQLSSTableWriter

[英]CQLSSTableWriter USING TTL

Can we use TTL on CQLSSTableWriter? 我们可以在CQLSSTableWriter上使用TTL吗? like columnFamilyWriter.addExpiringColumn. 如columnFamilyWriter.addExpiringColumn。 ( http://shareitexploreit.blogspot.in/2012/02/cassandra-bulk-loader.html ) http://shareitexploreit.blogspot.in/2012/02/cassandra-bulk-loader.html

Yes you can . 是的你可以 。 Moreover , the CQLSSTableWriter you have been using is upgraded. 此外,您一直在使用的CQLSSTableWriter已升级。 Try using the latest one. 尝试使用最新的。

http://cassandrabee.blogspot.in/2014/04/cqlsstablewriter-bulk-loading-in.html http://cassandrabee.blogspot.in/2014/04/cqlsstablewriter-bulk-loading-in.html

How to use the TTL TTL的使用方法

Just add the " USING TTL ? " to the insert query and bind the value to it. 只需在插入查询中添加“ USING TTL ? ”,然后将值绑定到该查询即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM