hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-12520 Add protected getters on TableInputFormatBase (Solomon Duskis)
Date Mon, 01 Dec 2014 18:21:02 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 53d775f24 -> 86dc3cab9


HBASE-12520 Add protected getters on TableInputFormatBase (Solomon Duskis)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/86dc3cab
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/86dc3cab
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/86dc3cab

Branch: refs/heads/branch-1
Commit: 86dc3cab96a5f9fcb09dd7d83dabcaf0d40320a5
Parents: 53d775f
Author: stack <stack@apache.org>
Authored: Mon Dec 1 10:20:37 2014 -0800
Committer: stack <stack@apache.org>
Committed: Mon Dec 1 10:20:57 2014 -0800

----------------------------------------------------------------------
 .../hbase/mapreduce/TableInputFormatBase.java   | 21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/86dc3cab/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
index 6560b41..325a781 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableInputFormatBase.java
@@ -286,6 +286,27 @@ extends InputFormat<ImmutableBytesWritable, Result> {
   }
 
   /**
+   * Allows subclasses to get the {@link RegionLocator}.
+   */
+  protected RegionLocator getRegionLocator() {
+    return regionLocator;
+  }
+  
+  /**
+   * Allows subclasses to get the {@link Table}.
+   */
+  protected Table getTable() {
+    return table;
+  }
+
+  /**
+   * Allows subclasses to get the {@link Admin}.
+   */
+  protected Admin getAdmin() {
+    return admin;
+  }
+
+  /**
    * Allows subclasses to set the {@link HTable}.
    *
    * @param table  The table to get the data from.


Mime
View raw message