sdong 28b5c76004 WriteBatchWithIndex: a wrapper of WriteBatch, with a searchable index
Summary:
Add WriteBatchWithIndex so that a user can query data out of a WriteBatch, to support MongoDB's read-its-own-write.

WriteBatchWithIndex uses a skiplist to store the binary index. The index stores the offset of the entry in the write batch. When searching for a key, the key for the entry is read by read the entry from the write batch from the offset.

Define a new iterator class for querying data out of WriteBatchWithIndex. A user can create an iterator of the write batch for one column family, seek to a key and keep calling Next() to see next entries.

I will add more unit tests if people are OK about this API.

Test Plan:
make all check
Add unit tests.

Reviewers: yhchiang, igor, MarkCallaghan, ljin

Reviewed By: ljin

Subscribers: dhruba, leveldb, xjin

Differential Revision: https://reviews.facebook.net/D21381
2014-08-18 16:37:38 -07:00
..
2014-07-08 12:31:49 -07:00
2014-08-18 11:08:51 -07:00
2014-08-11 13:22:47 -04:00
2014-08-11 13:22:47 -04:00
2014-04-24 14:56:41 -04:00
2014-07-30 18:21:55 -07:00
2014-08-13 13:45:13 -07:00
2014-07-20 22:57:20 +08:00
2014-08-13 15:56:37 -07:00
2014-04-08 10:58:07 -07:00
2014-06-03 12:28:58 -07:00
2014-08-06 18:11:33 -07:00
2014-07-30 10:17:48 -07:00
2014-02-28 13:19:47 -08:00
2014-01-27 14:49:10 -08:00
2014-03-14 22:44:35 +00:00
2014-03-14 13:02:20 -07:00
2014-08-13 11:57:40 -07:00
2014-01-30 22:10:10 -08:00
2014-04-15 13:39:26 -07:00