rocksdb/include/rocksdb
Yueh-Hsuan Chiang fe5c6321cb Allow EventListener::OnCompactionCompleted to return CompactionJobStats.
Summary:
Allow EventListener::OnCompactionCompleted to return CompactionJobStats,
which contains useful information about a compaction.

Example CompactionJobStats returned by OnCompactionCompleted():
    smallest_output_key_prefix 05000000
    largest_output_key_prefix 06990000
    elapsed_time 42419
    num_input_records 300
    num_input_files 3
    num_input_files_at_output_level 2
    num_output_records 200
    num_output_files 1
    actual_bytes_input 167200
    actual_bytes_output 110688
    total_input_raw_key_bytes 5400
    total_input_raw_value_bytes 300000
    num_records_replaced 100
    is_manual_compaction 1

Test Plan: Developed a mega test in db_test which covers 20 variables in CompactionJobStats.

Reviewers: rven, igor, anthony, sdong

Reviewed By: sdong

Subscribers: tnovak, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D38463
2015-06-02 17:07:16 -07:00
..
utilities Allow users to migrate to options.level_compaction_dynamic_level_bytes=true using CompactRange() 2015-06-01 18:21:14 -07:00
c.h Support saving history in memtable_list 2015-05-28 16:34:24 -07:00
cache.h Task 6532943: Rocksdb - SetCapacity() can dynamically change cache capacity if feasible 2015-04-24 14:12:58 -07:00
compaction_filter.h Add missing include to use std::unique_ptr 2014-08-23 13:02:21 -04:00
compaction_job_stats.h Allow EventListener::OnCompactionCompleted to return CompactionJobStats. 2015-06-02 17:07:16 -07:00
comparator.h CompactFiles, EventListener and GetDatabaseMetaData 2014-11-07 14:45:18 -08:00
db.h Fix Bug: CompactRange() doesn't change to correct level caused by using wrong level 2015-06-02 10:00:58 -07:00
env.h add rocksdb::WritableFileWrapper similar to rocksdb::EnvWrapper 2015-06-01 11:22:36 -07:00
experimental.h Implement DB::PromoteL0 method 2015-04-23 12:10:36 -07:00
filter_policy.h Implement full filter for block based table. 2014-09-08 10:37:05 -07:00
flush_block_policy.h move block based table related options BlockBasedTableOptions 2014-08-25 14:22:05 -07:00
immutable_options.h Fixed a compile error in ROCKSDB_LITE 2015-05-29 13:21:09 -07:00
iostats_context.h Allow EventListener::OnCompactionCompleted to return CompactionJobStats. 2015-06-02 17:07:16 -07:00
iterator.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
ldb_tool.h [RocksDB] allow LDB tool to have customized key formatter 2014-06-23 15:35:40 -07:00
listener.h Allow EventListener::OnCompactionCompleted to return CompactionJobStats. 2015-06-02 17:07:16 -07:00
memtablerep.h Add thread-safety documentation to MemTable and related classes 2015-04-08 21:10:35 -07:00
merge_operator.h Enhance partial merge to support multiple arguments 2014-03-24 17:57:13 -07:00
metadata.h Fixed -WShadow errors in db/db_test.cc and include/rocksdb/metadata.h 2014-11-07 14:57:51 -08:00
options.h Include EventListener in stress test. 2015-05-29 13:17:49 -07:00
perf_context.h more times in perf_context and iostats_context 2015-06-02 02:07:58 -07:00
perf_level.h more times in perf_context and iostats_context 2015-06-02 02:07:58 -07:00
rate_limiter.h Enable dynamic changing of rate limiter's bytes_per_second 2015-03-18 15:35:55 -07:00
slice_transform.h Unaddressed comment in previous diff. Change only in code comments. 2015-01-30 16:07:35 -08:00
slice.h Build for CYGWIN 2015-04-23 21:33:44 -07:00
sst_dump_tool.h Dump routine to BlockBasedTableReader 2014-12-23 13:24:07 -08:00
statistics.h fix crashes in stats and compaction filter for db_ttl_impl 2015-05-05 16:54:47 -07:00
status.h Optimistic Transactions 2015-05-29 14:36:35 -07:00
table_properties.h Add EventListener::OnTableFileCreated() 2015-06-02 14:12:23 -07:00
table.h A new call back to TablePropertiesCollector to allow users know the entry is add, delete or merge 2015-04-06 10:27:21 -07:00
thread_status.h CompactRange skips levels 1 to base_level -1 for dynamic level base size 2015-05-18 10:54:11 -07:00
transaction_log.h Revert "Fix bad merge of D16791 and D16767" 2014-03-12 09:37:43 -07:00
types.h Add License message to public header files. 2013-11-18 10:21:35 -08:00
universal_compaction.h Support Multiple DB paths (without having an interface to expose to users) 2014-07-02 21:14:44 -07:00
version.h Bump to 3.11 2015-05-07 13:27:14 -07:00
write_batch_base.h WriteBatch.Merge w/ SliceParts support 2015-05-29 04:30:03 -07:00
write_batch.h WriteBatch.Merge w/ SliceParts support 2015-05-29 04:30:03 -07:00