rocksdb/include/rocksdb
sdong 40f562e747 Allow GetApproximateSize() to include mem table size if it is skip list memtable
Summary:
Add an option in GetApproximateSize() so that the result will include estimated sizes in mem tables.
To implement it, implement an estimated count from the beginning to a key in skip list. The approach is to count to find the entry, how many Next() is issued from each level, and sum them with a weight that is <branching factor> ^ <level>.

Test Plan: Add a test case

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D40119
2015-06-16 18:13:23 -07:00
..
utilities Allow GetApproximateSize() to include mem table size if it is skip list memtable 2015-06-16 18:13:23 -07:00
c.h C: add WriteBatch.PutLogData support 2015-06-10 00:12:33 -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 Changed the CompactionJobStats::output_key_prefix type from char[] to string. 2015-06-04 12:31:12 -07:00
comparator.h CompactFiles, EventListener and GetDatabaseMetaData 2014-11-07 14:45:18 -08:00
db.h Allow GetApproximateSize() to include mem table size if it is skip list memtable 2015-06-16 18:13:23 -07:00
env.h Add Env::GetThreadID(), which returns the ID of the current thread. 2015-06-11 14:18:02 -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 Add largest sequence to FlushJobInfo 2015-06-11 15:22:22 -07:00
memtablerep.h Allow GetApproximateSize() to include mem table size if it is skip list memtable 2015-06-16 18:13:23 -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 Slow down writes by bytes written 2015-06-11 20:42:18 -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 TablePropertiesCollector::NeedCompact() to suggest DB to further compact output files 2015-06-05 20:18:21 -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