Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-52 [hbase] Add a means of scanning over all versions
  3. HBASE-33

Add a HTable get/obtainScanner method that retrieves all versions of a particular column and row between two timestamps

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.20.0
    • Client
    • None

    Description

      The use case:

      • A weblog application for which rows are user ids and posts are stored in a single column, with post date specified by the cell's timestamp. The application would then need to be able to display all posts for the last week or month.
      • A feedfetcher for which rows are URLs and feed posts are stored in a single column with the post publish date or fetch time stored in the cell's timestamp. The application would then need to be able to display all posts for the last week or month.

      Proposed API:

      // Get all versions of the specified row and column whose timestamps are in [minTimestamp, maxTimestamp]
      SortedMap<long, byte[]> getTimestamps(Text row, Text column, long minTimestamp, long maxTimestamp);

      // Get all versions of the specified row and column whose timestamps are >= minTimestamp
      SortedMap<long, byte[]> getTimestamps(Text row, Text column, long minTimestamp);

      I'd be happy to take this on myself, as I need it for the above use cases before migrating my application over to HBase.

      Attachments

        Issue Links

          Activity

            People

              streamy Jonathan Gray
              pdwryst Peter Dolan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: