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

Pass HTable as parameter to methods of AggregationClient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.3
    • 0.98.0
    • Client, Coprocessors
    • None
    • Reviewed
    • Hide
      In AggregationClient added a new set of APIs which takes an HTable instance rather than just table name. When client needs to call more than one aggregation API or they do have an instance of the HTable already available, they can pass it so as to avoid the overhead of creating the HTable again and again.
      Show
      In AggregationClient added a new set of APIs which takes an HTable instance rather than just table name. When client needs to call more than one aggregation API or they do have an instance of the HTable already available, they can pass it so as to avoid the overhead of creating the HTable again and again.

    Description

      In AggregationClient, methods such as max(...), min(...) pass 'tableName' as a parameter, then a HTable will be created in the method, before the method return, the created HTable will be closed.
      The process above may be heavy because each call must create and close a HTable. The situation becomes worse when there is only one thread access HBase using AggregationClient. The underly HConnection of created HTable will also be created and then closed each time when we invoke these method because no other HTables using the HConnection. This operation is heavy. Therefore, can we add another group of methods which pass HTable as a parameter to methods defined in AggregationClient

      Attachments

        1. HBASE-8218-0.94.3-v1.txt
          3 kB
          Jianwei Cui
        2. HBASE-8218-0.94.3-v2.txt
          5 kB
          Jianwei Cui
        3. HBASE-8218-0.94.3-v3.txt
          5 kB
          Jianwei Cui
        4. HBASE-8218-trunk-v1.txt
          5 kB
          Jianwei Cui
        5. 8218-trunk-v2.txt
          5 kB
          Ted Yu
        6. 8218-trunk-v3.txt
          19 kB
          Jianwei Cui
        7. 8218-trunk-v2-rerun.txt
          5 kB
          Jianwei Cui
        8. 8218-trunk-v3-rerun.txt
          19 kB
          Jianwei Cui
        9. HBase-8218_Trunk_V4.patch
          31 kB
          Anoop Sam John
        10. HBase-8218_Trunk_V5.patch
          31 kB
          Anoop Sam John

        Activity

          People

            anoopsamjohn Anoop Sam John
            cuijianwei Jianwei Cui
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: