You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2014/12/01 19:20:43 UTC
hbase git commit: HBASE-12520 Add protected getters on
TableInputFormatBase (Solomon Duskis)
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 <st...@apache.org>
Authored: Mon Dec 1 10:20:37 2014 -0800
Committer: stack <st...@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.