rocksdb/include/leveldb
Dhruba Borthakur 5273c81483 Ability to invoke application hook for every key during compaction.
Summary:
There are certain use-cases where the application intends to
delete older keys aftre they have expired a certian time period.
One option for those applications is to periodically scan the
entire database and delete appropriate keys.

A better way is to allow the application to hook into the
compaction process. This patch allows the application to set
a method callback for every key that is being compacted. If
this method returns true, then the key is not preserved in
the output of the compaction.

Test Plan:
This is mostly to preview the proposed new public api.
Since it is a public api, please do due diligence on reviewing it.

I will be writing test cases for this api in mynext version of
this patch.

Reviewers: MarkCallaghan, heyongqiang

Reviewed By: heyongqiang

CC: sheki, adsharma

Differential Revision: https://reviews.facebook.net/D6285
2012-11-05 16:02:13 -08:00
..
c.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
cache.h Print the block cache size in the LOG. 2012-09-29 21:39:19 -07:00
comparator.h A number of fixes: 2011-10-31 17:22:06 +00:00
db.h The BackupAPI should also list the length of the manifest file. 2012-09-25 03:13:25 -07:00
env.h Enable LevelDb to create a new log file if current log file is too large. 2012-10-26 14:55:02 -07:00
filter_policy.h Added bloom filter support. 2012-04-17 08:36:46 -07:00
iterator.h A number of fixes: 2011-10-31 17:22:06 +00:00
options.h Ability to invoke application hook for every key during compaction. 2012-11-05 16:02:13 -08:00
slice.h Support for java access to leveldb via leveldbjni. 2012-06-20 15:17:03 -07:00
statistics.h Clean up compiler warnings generated by -Wall option. 2012-08-29 14:24:51 -07:00
status.h build shared libraries; updated version to 1.3; add Status accessors 2012-03-30 13:15:49 -07:00
table_builder.h Allow having different compression algorithms on different levels. 2012-10-29 11:48:09 -07:00
table.h Trigger read compaction only if seeks to storage are incurred. 2012-09-28 11:10:52 -07:00
write_batch.h A number of fixes: 2011-10-31 17:22:06 +00:00