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

Allow sharing connections between AggregationClient instances

    XMLWordPrintableJSON

Details

    • Hide
      Added a new no-arg constructor for AggregationClient which allows lightweight usage of just the methods accepting a Table. Also added a new constructor which takes a Connection, allowing the user to pass their own externally managed connection which will be used when methods accepting a TableName are used.
      Show
      Added a new no-arg constructor for AggregationClient which allows lightweight usage of just the methods accepting a Table. Also added a new constructor which takes a Connection, allowing the user to pass their own externally managed connection which will be used when methods accepting a TableName are used.

    Description

      AggregationClient only has a single constructor which takes a Configuration. The constructor uses the Configuration to create a Connection.

      However, some of the AggregationClient methods take a Table argument. In those cases it doesn't use the created Connection at all.

      We should add another constructor which does not create a Connection so that people can use AggregationClient with externally managed Connection.

      Attachments

        Activity

          People

            bbeaudreault Bryan Beaudreault
            bbeaudreault Bryan Beaudreault
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: