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:20:43 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 69a437ac0 -> 308db3a5c


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/308db3a5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/308db3a5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/308db3a5

Branch: refs/heads/master
Commit: 308db3a5c8b869b41b9ccc8b59d43047b5613945
Parents: 69a437a
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:37 2014 -0800

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/308db3a5/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