Hello,
I am asking if there is a trigger that detects the TTL mechanism ?
I appreciate your help.
--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
Hi,
You’d have to develop your own custom secondary index as a plugin for Cassandra, note that DSE has slightly different interfaces so if you target DSE make sure you build using their jars. Also make sure Datastax will support such plugin.
Once you implement https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/index/Index.java you’ll have to implement Indexer inner class that has removeRow() and partitionDelete() methods, they are called when a row is TTLed. Be careful because there are cases where those methods are called while it’s not a TTL.
Cassandra has a Trigger interface but as far as I know it’s not called when TTL is triggered.
Regards,
--
Jacques-Henri Berthemet
--
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-user+unsubscribe@lists.datastax.com.
--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-user+unsubscribe@lists.datastax.com.
Hi There,
--