It's possible but ... uhm... Tedious. You would have to use the pre flush and compaction scanner open hooks, do the TTL calculation yourself for each KeyValue that passes through the scanner and then act accordingly.
Checkout RegionObserver.preCompactScannerOpen(...) and preFlushScannerOpen(...)
It's possible we could add something like this. ________________________________ From: Guillermo Ortiz <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Sent: Monday, July 21, 2014 5:24 AM Subject: Coprocessor beacuse of TTL expired?
I want to use coprocessors (observers), Could I execute an coprocessors which executes my code when a row expired because the TTL has expired?
will it be executed automatically? I mean,, without any scan or get over that row?? it's a pre and post delete or which observer?
We handled one such requirement by creating a custom scanner by using the compaction hooks as Lars suggested. On Jul 21, 2014 7:57 PM, "lars hofhansl" <[EMAIL PROTECTED]> wrote:
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation project and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext