How to retrieve all key-value pairs from a column family (cf) within a specific timestamp range?
I am working with a column family (cf) created using the predefined BytewiseComparatorWithU64Ts
comparator. After creating the cf, I added multiple key-value pairs with random timestamps, as shown in the example below:
Key Value Timestamp
key1 1 101
key1 2 102
key1 3 107
... ... ...
key1 10000 20004
Note: There is no constant increment in the timestamps.
My question:
How can I retrieve all key-value pairs where the timestamp is within a given range, e.g., [102, 1002]?
If possible, please provide C++ code snippets to illustrate the solution.