Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1439

Add endRow parameter to HClient#obtainScanner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Currently the HClient#obtainScanner looks like this:

      public synchronized HScannerInterface obtainScanner(Text[] columns, Text startRow) throws IOException;
      

      Add an overload that allows specification of endRow:

      public synchronized HScannerInterface obtainScanner(Text[] columns, Text startRow, Text endRow) throws IOException;
      

      Use Case: Table contains the whole web. Client just wants to scan google's pages. Currently, client could cut off the scanner as soon as the row key leaves the google domain but cleaner if HScannerInterface#next() returns false

      Attachments

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: