hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-11879) Change TableInputFormatBase to take interface arguments
Date Tue, 02 Sep 2014 18:26:21 GMT
Carter created HBASE-11879:

             Summary: Change TableInputFormatBase to take interface arguments
                 Key: HBASE-11879
                 URL: https://issues.apache.org/jira/browse/HBASE-11879
             Project: HBase
          Issue Type: Improvement
            Reporter: Carter
            Assignee: Carter

As part of the ongoing interface abstraction work, I'm now investigating {{TableInputFormatBase}},
which has two methods that break encapsulation:

protected HTable getHTable();
protected void setHTable(HTable table);

While these are protected methods, the base @InterfaceAudience.Public is abstract, meaning
that it supports extension by user code.

I propose deprecating these two methods and replacing them with these four, once the Table
interface is merged:

protected Table getTable();
protected void setTable(Table table);
protected RegionLocator getRegionLocator();
protected void setRegionLocator(RegionLocator regionLocator);

Since users will frequently call {{setTable}} and {{setRegionLocator}} together, it probably
also makes sense to add the following convenience method:

protected void setTableAndRegionLocator(Table table, RegionLocator regionLocator);

This message was sent by Atlassian JIRA

View raw message