From 86dc3cab96a5f9fcb09dd7d83dabcaf0d40320a5 Mon Sep 17 00:00:00 2001 From: stack Date: Mon, 1 Dec 2014 10:20:37 -0800 Subject: [PATCH] HBASE-12520 Add protected getters on TableInputFormatBase (Solomon Duskis) --- .../hbase/mapreduce/TableInputFormatBase.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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 6560b41d72d..325a781bbce 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 @@ -285,6 +285,27 @@ extends InputFormat { return (HTable) this.table; } + /** + * 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}. *