rocksdb/utilities/write_batch_with_index
agiardullo 711465ccec API to fetch from both a WriteBatchWithIndex and the db
Summary:
Added a couple functions to WriteBatchWithIndex to make it easier to query the value of a key including reading pending writes from a batch.  (This is needed for transactions).

I created write_batch_with_index_internal.h to use to store an internal-only helper function since there wasn't a good place in the existing class hierarchy to store this function (and it didn't seem right to stick this function inside WriteBatchInternal::Rep).

Since I needed to access the WriteBatchEntryComparator, I moved some helper classes from write_batch_with_index.cc into write_batch_with_index_internal.h/.cc.  WriteBatchIndexEntry, ReadableWriteBatch, and WriteBatchEntryComparator are all unchanged (just moved to a different file(s)).

Test Plan: Added new unit tests.

Reviewers: rven, yhchiang, sdong, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D38037
2015-05-11 14:51:51 -07:00
..
write_batch_with_index_internal.cc API to fetch from both a WriteBatchWithIndex and the db 2015-05-11 14:51:51 -07:00
write_batch_with_index_internal.h API to fetch from both a WriteBatchWithIndex and the db 2015-05-11 14:51:51 -07:00
write_batch_with_index_test.cc API to fetch from both a WriteBatchWithIndex and the db 2015-05-11 14:51:51 -07:00
write_batch_with_index.cc API to fetch from both a WriteBatchWithIndex and the db 2015-05-11 14:51:51 -07:00