HBase
  1. HBase
  2. HBASE-9343

Implement stateless scanner for Stargate

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.94.11
    • Fix Version/s: 0.98.0, 0.99.0
    • Component/s: REST
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Tags:
      scanner, rest

      Description

      The current scanner implementation for scanner stores state and hence not very suitable for REST server failure scenarios. The current JIRA proposes to implement a stateless scanner. In the first version of the patch, a new resource class "ScanResource" has been added and all the scan parameters will be specified as query params.

      The following are the scan parameters

      startrow - The start row for the scan.

      endrow - The end row for the scan.

      columns - The columns to scan.

      starttime, endtime - To only retrieve columns within a specific range of version timestamps,both start and end time must be specified.

      maxversions - To limit the number of versions of each column to be returned.

      batchsize - To limit the maximum number of values returned for each call to next().

      limit - The number of rows to return in the scan operation.

      More on start row, end row and limit parameters.
      1. If start row, end row and limit not specified, then the whole table will be scanned.
      2. If start row and limit (say N) is specified, then the scan operation will return N rows from the start row specified.
      3. If only limit parameter is specified, then the scan operation will return N rows from the start of the table.
      4. If limit and end row are specified, then the scan operation will return N rows from start of table till the end row. If the end row is
      reached before N rows ( say M and M < N ), then M rows will be returned to the user.
      5. If start row, end row and limit (say N ) are specified and N < number of rows between start row and end row, then N rows from start row
      will be returned to the user. If N > (number of rows between start row and end row (say M), then M number of rows will be returned to the
      user.

      1. HBASE-9343_trunk.05.patch
        52 kB
        Vandana Ayyalasomayajula
      2. HBASE-9343_trunk.04.patch
        50 kB
        Vandana Ayyalasomayajula
      3. HBASE-9343_trunk.03.patch
        50 kB
        Vandana Ayyalasomayajula
      4. HBASE-9343_trunk.02.patch
        49 kB
        Vandana Ayyalasomayajula
      5. HBASE-9343_trunk.01.patch
        48 kB
        Vandana Ayyalasomayajula
      6. HBASE-9343_trunk.01.patch
        48 kB
        Nick Dimiduk
      7. HBASE-9343_trunk.00.patch
        46 kB
        Vandana Ayyalasomayajula
      8. HBASE-9343_94.01.patch
        53 kB
        Vandana Ayyalasomayajula
      9. HBASE-9343_94.00.patch
        53 kB
        Vandana Ayyalasomayajula

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Vandana Ayyalasomayajula
              Reporter:
              Vandana Ayyalasomayajula
            • Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development