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

This commit is contained in:
stack 2014-12-01 10:20:37 -08:00
parent 69a437ac0d
commit 308db3a5c8
1 changed files with 21 additions and 0 deletions

View File

@ -285,6 +285,27 @@ extends InputFormat<ImmutableBytesWritable, Result> {
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}.
*