Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6244

[REST] Result generators do not need to query table schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.92.2, 0.94.1, 0.95.2
    • 0.94.1, 0.95.0
    • REST
    • None

    Description

      Now, the RowResultGenerator and the ScanerResultGenerator will fit the column family if the request doesn't contain any column info.

            if (rowspec.hasColumns()) {
              //addColumn for get or scan
            } else {
              for (HColumnDescriptor family: 
                  table.getTableDescriptor().getFamilies()) {
                scan/get.addFamily(family.getName());
              }
            }
      

      The table.getTableDescriptor() will cost 10+ milliseconds in our hbase cluster each request. We can remove these code because the server will auto add the columns.

      Attachments

        1. 6244-0.94.patch
          2 kB
          Andrew Kyle Purtell
        2. 6244.patch
          3 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            shixing ShiXing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: