rocksdb/tools
Jim Paton 74781a0c49 Add three new MemTableRep's
Summary:
This patch adds three new MemTableRep's: UnsortedRep, PrefixHashRep, and VectorRep.

UnsortedRep stores keys in an std::unordered_map of std::sets. When an iterator is requested, it dumps the keys into an std::set and iterates over that.

VectorRep stores keys in an std::vector. When an iterator is requested, it creates a copy of the vector and sorts it using std::sort. The iterator accesses that new vector.

PrefixHashRep stores keys in an unordered_map mapping prefixes to ordered sets.

I also added one API change. I added a function MemTableRep::MarkImmutable. This function is called when the rep is added to the immutable list. It doesn't do anything yet, but it seems like that could be useful. In particular, for the vectorrep, it means we could elide the extra copy and just sort in place. The only reason I haven't done that yet is because the use of the ArenaAllocator complicates things (I can elaborate on this if needed).

Test Plan:
make -j32 check
./db_stress --memtablerep=vector
./db_stress --memtablerep=unsorted
./db_stress --memtablerep=prefixhash --prefix_size=10

Reviewers: dhruba, haobo, emayanke

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D12117
2013-08-22 23:10:02 -07:00
..
shell Titile: a command line shell to read/write data from a leveldb thrift server 2012-08-23 09:41:05 -07:00
db_crashtest2.py Add universal compaction to db_stress nightly build 2013-08-20 17:37:49 -07:00
db_crashtest.py Add universal compaction to db_stress nightly build 2013-08-20 17:37:49 -07:00
db_repl_stress.cc API for getting archived log files 2013-08-19 13:37:04 -07:00
db_stress.cc Add three new MemTableRep's 2013-08-22 23:10:02 -07:00
ldb_test.py Enhance the ldb tool to support ttl databases 2013-05-15 12:10:00 -07:00
ldb.cc [RocksDB] Expose LDB functioanality as a library call - clients can build their own LDB binary with additional options 2013-04-11 20:21:49 -07:00
reduce_levels_test.cc [Rocksdb] codemod NULL to nullptr in tools/*.cc 2013-03-21 10:45:57 -07:00
sst_dump.cc [RocksDB] Improve sst_dump to take user key range 2013-08-08 15:31:12 -07:00