Revision 05e8854085ca783956fd33021a9a334d77ed4d9e authored by Haobo Xu on 21 March 2013, 22:59:47 UTC, committed by Haobo Xu on 03 May 2013, 23:59:02 UTC
Summary:
This diff introduces a new Merge operation into rocksdb.
The purpose of this review is mostly getting feedback from the team (everyone please) on the design.

Please focus on the four files under include/leveldb/, as they spell the client visible interface change.
include/leveldb/db.h
include/leveldb/merge_operator.h
include/leveldb/options.h
include/leveldb/write_batch.h

Please go over local/my_test.cc carefully, as it is a concerete use case.

Please also review the impelmentation files to see if the straw man implementation makes sense.

Note that, the diff does pass all make check and truly supports forward iterator over db and a version
of Get that's based on iterator.

Future work:
- Integration with compaction
- A raw Get implementation

I am working on a wiki that explains the design and implementation choices, but coding comes
just naturally and I think it might be a good idea to share the code earlier. The code is
heavily commented.

Test Plan: run all local tests

Reviewers: dhruba, heyongqiang

Reviewed By: dhruba

CC: leveldb, zshao, sheki, emayanke, MarkCallaghan

Differential Revision: https://reviews.facebook.net/D9651
1 parent 37e97b1
History
File Mode Size
block.cc -rw-r--r-- 7.9 KB
block.h -rw-r--r-- 1.1 KB
block_builder.cc -rw-r--r-- 3.6 KB
block_builder.h -rw-r--r-- 1.7 KB
block_test.cc -rw-r--r-- 2.6 KB
filter_block.cc -rw-r--r-- 3.3 KB
filter_block.h -rw-r--r-- 2.2 KB
filter_block_test.cc -rw-r--r-- 3.6 KB
format.cc -rw-r--r-- 5.6 KB
format.h -rw-r--r-- 3.1 KB
iter_heap.h -rw-r--r-- 1.7 KB
iterator.cc -rw-r--r-- 1.7 KB
iterator_wrapper.h -rw-r--r-- 2.0 KB
merger.cc -rw-r--r-- 5.4 KB
merger.h -rw-r--r-- 867 bytes
table.cc -rw-r--r-- 11.7 KB
table.h -rw-r--r-- 3.5 KB
table_builder.cc -rw-r--r-- 9.8 KB
table_test.cc -rw-r--r-- 26.5 KB
two_level_iterator.cc -rw-r--r-- 4.9 KB
two_level_iterator.h -rw-r--r-- 1.3 KB

back to top