rocksdb/utilities/ttl
Mayank Agarwal 61f1baaedf Introducing timeranged scan, timeranged dump in ldb. Also the ability to count in time-batches during Dump
Summary:
Scan and Dump commands in ldb use iterator. We need to also print timestamp for ttl databases for debugging. For this I create a TtlIterator class pointer in these functions and assign it the value of Iterator pointer which actually points to t TtlIterator object, and access the new function ValueWithTS which can return TS also. Buckets feature for dump command: gives a count of different key-values in the specified time-range distributed across the time-range partitioned according to bucket-size. start_time and end_time are specified in unixtimestamp and bucket in seconds on the user-commandline
Have commented out 3 ines from ldb_test.py so that the test does not break right now. It breaks because timestamp is also printed now and I have to look at wildcards in python to compare properly.

Test Plan: python tools/ldb_test.py

Reviewers: vamsi, dhruba, haobo, sheki

Reviewed By: vamsi

CC: leveldb

Differential Revision: https://reviews.facebook.net/D11403
2013-06-19 18:45:13 -07:00
..
db_ttl.cc Introducing timeranged scan, timeranged dump in ldb. Also the ability to count in time-batches during Dump 2013-06-19 18:45:13 -07:00
db_ttl.h Introducing timeranged scan, timeranged dump in ldb. Also the ability to count in time-batches during Dump 2013-06-19 18:45:13 -07:00
ttl_test.cc Make Write API work for TTL databases 2013-06-10 15:23:44 -07:00