You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by la...@apache.org on 2013/09/05 00:17:24 UTC
svn commit: r1520155 -
/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java
Author: larsh
Date: Wed Sep 4 22:17:23 2013
New Revision: 1520155
URL: http://svn.apache.org/r1520155
Log:
HBASE-9429 Add back MetaScanner.allTableRegions(Configuration conf,byte[] tablename,boolean offlined) method
Modified:
hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java
Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java?rev=1520155&r1=1520154&r2=1520155&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/client/MetaScanner.java Wed Sep 4 22:17:23 2013
@@ -269,6 +269,22 @@ public class MetaScanner {
* leave out offlined regions from returned list.
* @return Map of all user-space regions to servers
* @throws IOException
+ * @Deprecated Use {@link #allTableRegions(Configuration, HConnection, byte[], boolean)}
+ * instead
+ */
+ @Deprecated
+ public static NavigableMap<HRegionInfo, ServerName> allTableRegions(Configuration conf,
+ final byte[] tablename, final boolean offlined) throws IOException {
+ return allTableRegions(conf, null, tablename, offlined);
+ }
+ /**
+ * Lists all of the table regions currently in META.
+ * @param conf
+ * @param connection connection to be used internally (null to create a new connection)
+ * @param offlined True if we are to include offlined regions, false and we'll
+ * leave out offlined regions from returned list.
+ * @return Map of all user-space regions to servers
+ * @throws IOException
*/
public static NavigableMap<HRegionInfo, ServerName> allTableRegions(Configuration conf,
HConnection connection, final byte[] tablename, final boolean offlined) throws IOException {