rocksdb/utilities/blob_db
Yi Wu 6083bc79f8 Blob DB TTL extractor
Summary:
Introducing blob_db::TTLExtractor to replace extract_ttl_fn. The TTL
extractor can be use to extract TTL from keys insert with Put or
WriteBatch. Change over existing extract_ttl_fn are:
* If value is changed, it will be return via std::string* (rather than Slice*). With Slice* the new value has to be part of the existing value. With std::string* the limitation is removed.
* It can optionally return TTL or expiration.

Other changes in this PR:
* replace `std::chrono::system_clock` with `Env::NowMicros` so that I can mock time in tests.
* add several TTL tests.
* other minor naming change.
Closes https://github.com/facebook/rocksdb/pull/2659

Differential Revision: D5512627

Pulled By: yiwu-arbug

fbshipit-source-id: 0dfcb00d74d060b8534c6130c808e4d5d0a54440
2017-07-27 23:26:04 -07:00
..
blob_db_impl.cc Blob DB TTL extractor 2017-07-27 23:26:04 -07:00
blob_db_impl.h Blob DB TTL extractor 2017-07-27 23:26:04 -07:00
blob_db_options_impl.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_db_options_impl.h Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_db_test.cc Blob DB TTL extractor 2017-07-27 23:26:04 -07:00
blob_db.cc Blob DB TTL extractor 2017-07-27 23:26:04 -07:00
blob_db.h Blob DB TTL extractor 2017-07-27 23:26:04 -07:00
blob_dump_tool.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_dump_tool.h Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_file.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_log_format.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_log_format.h Blob DB TTL extractor 2017-07-27 23:26:04 -07:00
blob_log_reader.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
blob_log_reader.h Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_log_writer.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
blob_log_writer.h Change RocksDB License 2017-07-15 16:11:23 -07:00
ttl_extractor.cc Blob DB TTL extractor 2017-07-27 23:26:04 -07:00
ttl_extractor.h Blob DB TTL extractor 2017-07-27 23:26:04 -07:00