hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1711891 [43/50] - in /hbase/hbase.apache.org/trunk: ./ apidocs/ apidocs/org/apache/hadoop/hbase/ apidocs/org/apache/hadoop/hbase/class-use/ apidocs/org/apache/hadoop/hbase/client/ apidocs/org/apache/hadoop/hbase/client/class-use/ apidocs/o...
Date Mon, 02 Nov 2015 03:51:05 GMT
Modified: hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/MetaTableAccessor.html
URL: http://svn.apache.org/viewvc/hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/MetaTableAccessor.html?rev=1711891&r1=1711890&r2=1711891&view=diff
==============================================================================
--- hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/MetaTableAccessor.html (original)
+++ hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/MetaTableAccessor.html Mon Nov  2 03:51:02 2015
@@ -312,7 +312,7 @@
 <a class="jxr_linenumber" name="302" href="#302">302</a>       parsedInfo = parseRegionInfoFromRegionName(regionName);
 <a class="jxr_linenumber" name="303" href="#303">303</a>       row = getMetaKeyForRegion(parsedInfo);
 <a class="jxr_linenumber" name="304" href="#304">304</a>     } <strong class="jxr_keyword">catch</strong> (Exception parseEx) {
-<a class="jxr_linenumber" name="305" href="#305">305</a>       <em class="jxr_comment">// Ignore. This is used with tableName passed as regionName.</em>
+<a class="jxr_linenumber" name="305" href="#305">305</a>       ; <em class="jxr_comment">// Ignore. This is used with tableName passed as regionName.</em>
 <a class="jxr_linenumber" name="306" href="#306">306</a>     }
 <a class="jxr_linenumber" name="307" href="#307">307</a>     <a href="../../../../org/apache/hadoop/hbase/client/Get.html">Get</a> get = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/client/Get.html">Get</a>(row);
 <a class="jxr_linenumber" name="308" href="#308">308</a>     get.addFamily(HConstants.CATALOG_FAMILY);
@@ -929,1070 +929,1063 @@
 <a class="jxr_linenumber" name="919" href="#919">919</a> <em class="jxr_javadoccomment">   * @return A ServerName instance or null if necessary fields not found or empty.</em>
 <a class="jxr_linenumber" name="920" href="#920">920</a> <em class="jxr_javadoccomment">   */</em>
 <a class="jxr_linenumber" name="921" href="#921">921</a>   @Nullable
-<a class="jxr_linenumber" name="922" href="#922">922</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">ServerName</a> getServerName(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> replicaId) {
-<a class="jxr_linenumber" name="923" href="#923">923</a>     byte[] serverColumn = getServerColumn(replicaId);
-<a class="jxr_linenumber" name="924" href="#924">924</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getCatalogFamily(), serverColumn);
-<a class="jxr_linenumber" name="925" href="#925">925</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong> || cell.getValueLength() == 0) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="926" href="#926">926</a>     String hostAndPort = Bytes.toString(
-<a class="jxr_linenumber" name="927" href="#927">927</a>       cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
-<a class="jxr_linenumber" name="928" href="#928">928</a>     byte[] startcodeColumn = getStartCodeColumn(replicaId);
-<a class="jxr_linenumber" name="929" href="#929">929</a>     cell = r.getColumnLatestCell(getCatalogFamily(), startcodeColumn);
-<a class="jxr_linenumber" name="930" href="#930">930</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong> || cell.getValueLength() == 0) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="931" href="#931">931</a>     <strong class="jxr_keyword">return</strong> ServerName.valueOf(hostAndPort,
-<a class="jxr_linenumber" name="932" href="#932">932</a>       Bytes.toLong(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength()));
-<a class="jxr_linenumber" name="933" href="#933">933</a>   }
-<a class="jxr_linenumber" name="934" href="#934">934</a> 
-<a class="jxr_linenumber" name="935" href="#935">935</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="936" href="#936">936</a> <em class="jxr_javadoccomment">   * The latest seqnum that the server writing to meta observed when opening the region.</em>
-<a class="jxr_linenumber" name="937" href="#937">937</a> <em class="jxr_javadoccomment">   * E.g. the seqNum when the result of {@link #getServerName(Result, int)} was written.</em>
-<a class="jxr_linenumber" name="938" href="#938">938</a> <em class="jxr_javadoccomment">   * @param r Result to pull the seqNum from</em>
-<a class="jxr_linenumber" name="939" href="#939">939</a> <em class="jxr_javadoccomment">   * @return SeqNum, or HConstants.NO_SEQNUM if there's no value written.</em>
-<a class="jxr_linenumber" name="940" href="#940">940</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="941" href="#941">941</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">long</strong> getSeqNumDuringOpen(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> replicaId) {
-<a class="jxr_linenumber" name="942" href="#942">942</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getCatalogFamily(), getSeqNumColumn(replicaId));
-<a class="jxr_linenumber" name="943" href="#943">943</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong> || cell.getValueLength() == 0) <strong class="jxr_keyword">return</strong> HConstants.NO_SEQNUM;
-<a class="jxr_linenumber" name="944" href="#944">944</a>     <strong class="jxr_keyword">return</strong> Bytes.toLong(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
-<a class="jxr_linenumber" name="945" href="#945">945</a>   }
-<a class="jxr_linenumber" name="946" href="#946">946</a> 
-<a class="jxr_linenumber" name="947" href="#947">947</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="948" href="#948">948</a> <em class="jxr_javadoccomment">   * Returns an HRegionLocationList extracted from the result.</em>
-<a class="jxr_linenumber" name="949" href="#949">949</a> <em class="jxr_javadoccomment">   * @return an HRegionLocationList containing all locations for the region range or null if</em>
-<a class="jxr_linenumber" name="950" href="#950">950</a> <em class="jxr_javadoccomment">   *  we can't deserialize the result.</em>
-<a class="jxr_linenumber" name="951" href="#951">951</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="952" href="#952">952</a>   @Nullable
-<a class="jxr_linenumber" name="953" href="#953">953</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/RegionLocations.html">RegionLocations</a> getRegionLocations(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) {
-<a class="jxr_linenumber" name="954" href="#954">954</a>     <strong class="jxr_keyword">if</strong> (r == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="955" href="#955">955</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> regionInfo = getHRegionInfo(r, getRegionInfoColumn());
-<a class="jxr_linenumber" name="956" href="#956">956</a>     <strong class="jxr_keyword">if</strong> (regionInfo == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="957" href="#957">957</a> 
-<a class="jxr_linenumber" name="958" href="#958">958</a>     List&lt;HRegionLocation&gt; locations = <strong class="jxr_keyword">new</strong> ArrayList&lt;HRegionLocation&gt;(1);
-<a class="jxr_linenumber" name="959" href="#959">959</a>     NavigableMap&lt;byte[],NavigableMap&lt;byte[],byte[]&gt;&gt; familyMap = r.getNoVersionMap();
-<a class="jxr_linenumber" name="960" href="#960">960</a> 
-<a class="jxr_linenumber" name="961" href="#961">961</a>     locations.add(getRegionLocation(r, regionInfo, 0));
-<a class="jxr_linenumber" name="962" href="#962">962</a> 
-<a class="jxr_linenumber" name="963" href="#963">963</a>     NavigableMap&lt;byte[], byte[]&gt; infoMap = familyMap.get(getCatalogFamily());
-<a class="jxr_linenumber" name="964" href="#964">964</a>     <strong class="jxr_keyword">if</strong> (infoMap == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> RegionLocations(locations);
-<a class="jxr_linenumber" name="965" href="#965">965</a> 
-<a class="jxr_linenumber" name="966" href="#966">966</a>     <em class="jxr_comment">// iterate until all serverName columns are seen</em>
-<a class="jxr_linenumber" name="967" href="#967">967</a>     <strong class="jxr_keyword">int</strong> replicaId = 0;
-<a class="jxr_linenumber" name="968" href="#968">968</a>     byte[] serverColumn = getServerColumn(replicaId);
-<a class="jxr_linenumber" name="969" href="#969">969</a>     SortedMap&lt;byte[], byte[]&gt; serverMap = infoMap.tailMap(serverColumn, false);
-<a class="jxr_linenumber" name="970" href="#970">970</a>     <strong class="jxr_keyword">if</strong> (serverMap.isEmpty()) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> RegionLocations(locations);
+<a class="jxr_linenumber" name="922" href="#922">922</a>   @InterfaceAudience.Private <em class="jxr_comment">// for use by HMaster#getTableRegionRow which is used for testing only</em>
+<a class="jxr_linenumber" name="923" href="#923">923</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">ServerName</a> getServerName(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> replicaId) {
+<a class="jxr_linenumber" name="924" href="#924">924</a>     byte[] serverColumn = getServerColumn(replicaId);
+<a class="jxr_linenumber" name="925" href="#925">925</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getCatalogFamily(), serverColumn);
+<a class="jxr_linenumber" name="926" href="#926">926</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong> || cell.getValueLength() == 0) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="927" href="#927">927</a>     String hostAndPort = Bytes.toString(
+<a class="jxr_linenumber" name="928" href="#928">928</a>       cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
+<a class="jxr_linenumber" name="929" href="#929">929</a>     byte[] startcodeColumn = getStartCodeColumn(replicaId);
+<a class="jxr_linenumber" name="930" href="#930">930</a>     cell = r.getColumnLatestCell(getCatalogFamily(), startcodeColumn);
+<a class="jxr_linenumber" name="931" href="#931">931</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong> || cell.getValueLength() == 0) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="932" href="#932">932</a>     <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="933" href="#933">933</a>       <strong class="jxr_keyword">return</strong> ServerName.valueOf(hostAndPort,
+<a class="jxr_linenumber" name="934" href="#934">934</a>           Bytes.toLong(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength()));
+<a class="jxr_linenumber" name="935" href="#935">935</a>     } <strong class="jxr_keyword">catch</strong> (IllegalArgumentException e) {
+<a class="jxr_linenumber" name="936" href="#936">936</a>       LOG.error(<span class="jxr_string">"Ignoring invalid region for server "</span> + hostAndPort + <span class="jxr_string">"; cell="</span> + cell, e);
+<a class="jxr_linenumber" name="937" href="#937">937</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="938" href="#938">938</a>     }
+<a class="jxr_linenumber" name="939" href="#939">939</a>   }
+<a class="jxr_linenumber" name="940" href="#940">940</a> 
+<a class="jxr_linenumber" name="941" href="#941">941</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="942" href="#942">942</a> <em class="jxr_javadoccomment">   * The latest seqnum that the server writing to meta observed when opening the region.</em>
+<a class="jxr_linenumber" name="943" href="#943">943</a> <em class="jxr_javadoccomment">   * E.g. the seqNum when the result of {@link #getServerName(Result, int)} was written.</em>
+<a class="jxr_linenumber" name="944" href="#944">944</a> <em class="jxr_javadoccomment">   * @param r Result to pull the seqNum from</em>
+<a class="jxr_linenumber" name="945" href="#945">945</a> <em class="jxr_javadoccomment">   * @return SeqNum, or HConstants.NO_SEQNUM if there's no value written.</em>
+<a class="jxr_linenumber" name="946" href="#946">946</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="947" href="#947">947</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">long</strong> getSeqNumDuringOpen(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> replicaId) {
+<a class="jxr_linenumber" name="948" href="#948">948</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getCatalogFamily(), getSeqNumColumn(replicaId));
+<a class="jxr_linenumber" name="949" href="#949">949</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong> || cell.getValueLength() == 0) <strong class="jxr_keyword">return</strong> HConstants.NO_SEQNUM;
+<a class="jxr_linenumber" name="950" href="#950">950</a>     <strong class="jxr_keyword">return</strong> Bytes.toLong(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
+<a class="jxr_linenumber" name="951" href="#951">951</a>   }
+<a class="jxr_linenumber" name="952" href="#952">952</a> 
+<a class="jxr_linenumber" name="953" href="#953">953</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="954" href="#954">954</a> <em class="jxr_javadoccomment">   * Returns an HRegionLocationList extracted from the result.</em>
+<a class="jxr_linenumber" name="955" href="#955">955</a> <em class="jxr_javadoccomment">   * @return an HRegionLocationList containing all locations for the region range or null if</em>
+<a class="jxr_linenumber" name="956" href="#956">956</a> <em class="jxr_javadoccomment">   *  we can't deserialize the result.</em>
+<a class="jxr_linenumber" name="957" href="#957">957</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="958" href="#958">958</a>   @Nullable
+<a class="jxr_linenumber" name="959" href="#959">959</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/RegionLocations.html">RegionLocations</a> getRegionLocations(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) {
+<a class="jxr_linenumber" name="960" href="#960">960</a>     <strong class="jxr_keyword">if</strong> (r == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="961" href="#961">961</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> regionInfo = getHRegionInfo(r, getRegionInfoColumn());
+<a class="jxr_linenumber" name="962" href="#962">962</a>     <strong class="jxr_keyword">if</strong> (regionInfo == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="963" href="#963">963</a> 
+<a class="jxr_linenumber" name="964" href="#964">964</a>     List&lt;HRegionLocation&gt; locations = <strong class="jxr_keyword">new</strong> ArrayList&lt;HRegionLocation&gt;(1);
+<a class="jxr_linenumber" name="965" href="#965">965</a>     NavigableMap&lt;byte[],NavigableMap&lt;byte[],byte[]&gt;&gt; familyMap = r.getNoVersionMap();
+<a class="jxr_linenumber" name="966" href="#966">966</a> 
+<a class="jxr_linenumber" name="967" href="#967">967</a>     locations.add(getRegionLocation(r, regionInfo, 0));
+<a class="jxr_linenumber" name="968" href="#968">968</a> 
+<a class="jxr_linenumber" name="969" href="#969">969</a>     NavigableMap&lt;byte[], byte[]&gt; infoMap = familyMap.get(getCatalogFamily());
+<a class="jxr_linenumber" name="970" href="#970">970</a>     <strong class="jxr_keyword">if</strong> (infoMap == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> RegionLocations(locations);
 <a class="jxr_linenumber" name="971" href="#971">971</a> 
-<a class="jxr_linenumber" name="972" href="#972">972</a>     <strong class="jxr_keyword">for</strong> (Map.Entry&lt;byte[], byte[]&gt; entry : serverMap.entrySet()) {
-<a class="jxr_linenumber" name="973" href="#973">973</a>       replicaId = parseReplicaIdFromServerColumn(entry.getKey());
-<a class="jxr_linenumber" name="974" href="#974">974</a>       <strong class="jxr_keyword">if</strong> (replicaId &lt; 0) {
-<a class="jxr_linenumber" name="975" href="#975">975</a>         <strong class="jxr_keyword">break</strong>;
-<a class="jxr_linenumber" name="976" href="#976">976</a>       }
-<a class="jxr_linenumber" name="977" href="#977">977</a>       <a href="../../../../org/apache/hadoop/hbase/HRegionLocation.html">HRegionLocation</a> location = getRegionLocation(r, regionInfo, replicaId);
-<a class="jxr_linenumber" name="978" href="#978">978</a>       <em class="jxr_comment">// In case the region replica is newly created, it's location might be null. We usually do not</em>
-<a class="jxr_linenumber" name="979" href="#979">979</a>       <em class="jxr_comment">// have HRL's in RegionLocations object with null ServerName. They are handled as null HRLs.</em>
-<a class="jxr_linenumber" name="980" href="#980">980</a>       <strong class="jxr_keyword">if</strong> (location == <strong class="jxr_keyword">null</strong> || location.getServerName() == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="981" href="#981">981</a>         locations.add(<strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="982" href="#982">982</a>       } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="983" href="#983">983</a>         locations.add(location);
-<a class="jxr_linenumber" name="984" href="#984">984</a>       }
-<a class="jxr_linenumber" name="985" href="#985">985</a>     }
-<a class="jxr_linenumber" name="986" href="#986">986</a> 
-<a class="jxr_linenumber" name="987" href="#987">987</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/RegionLocations.html">RegionLocations</a>(locations);
-<a class="jxr_linenumber" name="988" href="#988">988</a>   }
-<a class="jxr_linenumber" name="989" href="#989">989</a> 
-<a class="jxr_linenumber" name="990" href="#990">990</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="991" href="#991">991</a> <em class="jxr_javadoccomment">   * Returns the HRegionLocation parsed from the given meta row Result</em>
-<a class="jxr_linenumber" name="992" href="#992">992</a> <em class="jxr_javadoccomment">   * for the given regionInfo and replicaId. The regionInfo can be the default region info</em>
-<a class="jxr_linenumber" name="993" href="#993">993</a> <em class="jxr_javadoccomment">   * for the replica.</em>
-<a class="jxr_linenumber" name="994" href="#994">994</a> <em class="jxr_javadoccomment">   * @param r the meta row result</em>
-<a class="jxr_linenumber" name="995" href="#995">995</a> <em class="jxr_javadoccomment">   * @param regionInfo RegionInfo for default replica</em>
-<a class="jxr_linenumber" name="996" href="#996">996</a> <em class="jxr_javadoccomment">   * @param replicaId the replicaId for the HRegionLocation</em>
-<a class="jxr_linenumber" name="997" href="#997">997</a> <em class="jxr_javadoccomment">   * @return HRegionLocation parsed from the given meta row Result for the given replicaId</em>
-<a class="jxr_linenumber" name="998" href="#998">998</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="999" href="#999">999</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionLocation.html">HRegionLocation</a> getRegionLocation(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> regionInfo,
-<a class="jxr_linenumber" name="1000" href="#1000">1000</a>                                                    <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> replicaId) {
-<a class="jxr_linenumber" name="1001" href="#1001">1001</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">ServerName</a> serverName = getServerName(r, replicaId);
-<a class="jxr_linenumber" name="1002" href="#1002">1002</a>     <strong class="jxr_keyword">long</strong> seqNum = getSeqNumDuringOpen(r, replicaId);
-<a class="jxr_linenumber" name="1003" href="#1003">1003</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> replicaInfo = RegionReplicaUtil.getRegionInfoForReplica(regionInfo, replicaId);
-<a class="jxr_linenumber" name="1004" href="#1004">1004</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionLocation.html">HRegionLocation</a>(replicaInfo, serverName, seqNum);
-<a class="jxr_linenumber" name="1005" href="#1005">1005</a>   }
-<a class="jxr_linenumber" name="1006" href="#1006">1006</a> 
-<a class="jxr_linenumber" name="1007" href="#1007">1007</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1008" href="#1008">1008</a> <em class="jxr_javadoccomment">   * Returns HRegionInfo object from the column</em>
-<a class="jxr_linenumber" name="1009" href="#1009">1009</a> <em class="jxr_javadoccomment">   * HConstants.CATALOG_FAMILY:HConstants.REGIONINFO_QUALIFIER of the catalog</em>
-<a class="jxr_linenumber" name="1010" href="#1010">1010</a> <em class="jxr_javadoccomment">   * table Result.</em>
-<a class="jxr_linenumber" name="1011" href="#1011">1011</a> <em class="jxr_javadoccomment">   * @param data a Result object from the catalog table scan</em>
-<a class="jxr_linenumber" name="1012" href="#1012">1012</a> <em class="jxr_javadoccomment">   * @return HRegionInfo or null</em>
-<a class="jxr_linenumber" name="1013" href="#1013">1013</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1014" href="#1014">1014</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> getHRegionInfo(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> data) {
-<a class="jxr_linenumber" name="1015" href="#1015">1015</a>     <strong class="jxr_keyword">return</strong> getHRegionInfo(data, HConstants.REGIONINFO_QUALIFIER);
-<a class="jxr_linenumber" name="1016" href="#1016">1016</a>   }
-<a class="jxr_linenumber" name="1017" href="#1017">1017</a> 
-<a class="jxr_linenumber" name="1018" href="#1018">1018</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1019" href="#1019">1019</a> <em class="jxr_javadoccomment">   * Returns the HRegionInfo object from the column {@link HConstants#CATALOG_FAMILY} and</em>
-<a class="jxr_linenumber" name="1020" href="#1020">1020</a> <em class="jxr_javadoccomment">   * &lt;code&gt;qualifier&lt;/code&gt; of the catalog table result.</em>
-<a class="jxr_linenumber" name="1021" href="#1021">1021</a> <em class="jxr_javadoccomment">   * @param r a Result object from the catalog table scan</em>
-<a class="jxr_linenumber" name="1022" href="#1022">1022</a> <em class="jxr_javadoccomment">   * @param qualifier Column family qualifier</em>
-<a class="jxr_linenumber" name="1023" href="#1023">1023</a> <em class="jxr_javadoccomment">   * @return An HRegionInfo instance or null.</em>
-<a class="jxr_linenumber" name="1024" href="#1024">1024</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1025" href="#1025">1025</a>   @Nullable
-<a class="jxr_linenumber" name="1026" href="#1026">1026</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> getHRegionInfo(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, byte [] qualifier) {
-<a class="jxr_linenumber" name="1027" href="#1027">1027</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getCatalogFamily(), qualifier);
-<a class="jxr_linenumber" name="1028" href="#1028">1028</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="1029" href="#1029">1029</a>     <strong class="jxr_keyword">return</strong> HRegionInfo.parseFromOrNull(cell.getValueArray(),
-<a class="jxr_linenumber" name="1030" href="#1030">1030</a>       cell.getValueOffset(), cell.getValueLength());
-<a class="jxr_linenumber" name="1031" href="#1031">1031</a>   }
-<a class="jxr_linenumber" name="1032" href="#1032">1032</a> 
-<a class="jxr_linenumber" name="1033" href="#1033">1033</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1034" href="#1034">1034</a> <em class="jxr_javadoccomment">   * Returns the daughter regions by reading the corresponding columns of the catalog table</em>
-<a class="jxr_linenumber" name="1035" href="#1035">1035</a> <em class="jxr_javadoccomment">   * Result.</em>
-<a class="jxr_linenumber" name="1036" href="#1036">1036</a> <em class="jxr_javadoccomment">   * @param data a Result object from the catalog table scan</em>
-<a class="jxr_linenumber" name="1037" href="#1037">1037</a> <em class="jxr_javadoccomment">   * @return a pair of HRegionInfo or PairOfSameType(null, null) if the region is not a split</em>
-<a class="jxr_linenumber" name="1038" href="#1038">1038</a> <em class="jxr_javadoccomment">   * parent</em>
-<a class="jxr_linenumber" name="1039" href="#1039">1039</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1040" href="#1040">1040</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PairOfSameType&lt;HRegionInfo&gt; getDaughterRegions(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> data) {
-<a class="jxr_linenumber" name="1041" href="#1041">1041</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> splitA = getHRegionInfo(data, HConstants.SPLITA_QUALIFIER);
-<a class="jxr_linenumber" name="1042" href="#1042">1042</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> splitB = getHRegionInfo(data, HConstants.SPLITB_QUALIFIER);
-<a class="jxr_linenumber" name="1043" href="#1043">1043</a> 
-<a class="jxr_linenumber" name="1044" href="#1044">1044</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> PairOfSameType&lt;HRegionInfo&gt;(splitA, splitB);
-<a class="jxr_linenumber" name="1045" href="#1045">1045</a>   }
-<a class="jxr_linenumber" name="1046" href="#1046">1046</a> 
-<a class="jxr_linenumber" name="1047" href="#1047">1047</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1048" href="#1048">1048</a> <em class="jxr_javadoccomment">   * Returns the merge regions by reading the corresponding columns of the catalog table</em>
-<a class="jxr_linenumber" name="1049" href="#1049">1049</a> <em class="jxr_javadoccomment">   * Result.</em>
-<a class="jxr_linenumber" name="1050" href="#1050">1050</a> <em class="jxr_javadoccomment">   * @param data a Result object from the catalog table scan</em>
-<a class="jxr_linenumber" name="1051" href="#1051">1051</a> <em class="jxr_javadoccomment">   * @return a pair of HRegionInfo or PairOfSameType(null, null) if the region is not a split</em>
-<a class="jxr_linenumber" name="1052" href="#1052">1052</a> <em class="jxr_javadoccomment">   * parent</em>
-<a class="jxr_linenumber" name="1053" href="#1053">1053</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1054" href="#1054">1054</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PairOfSameType&lt;HRegionInfo&gt; getMergeRegions(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> data) {
-<a class="jxr_linenumber" name="1055" href="#1055">1055</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> mergeA = getHRegionInfo(data, HConstants.MERGEA_QUALIFIER);
-<a class="jxr_linenumber" name="1056" href="#1056">1056</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> mergeB = getHRegionInfo(data, HConstants.MERGEB_QUALIFIER);
-<a class="jxr_linenumber" name="1057" href="#1057">1057</a> 
-<a class="jxr_linenumber" name="1058" href="#1058">1058</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> PairOfSameType&lt;HRegionInfo&gt;(mergeA, mergeB);
-<a class="jxr_linenumber" name="1059" href="#1059">1059</a>   }
-<a class="jxr_linenumber" name="1060" href="#1060">1060</a> 
-<a class="jxr_linenumber" name="1061" href="#1061">1061</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1062" href="#1062">1062</a> <em class="jxr_javadoccomment">   * Fetch table state for given table from META table</em>
-<a class="jxr_linenumber" name="1063" href="#1063">1063</a> <em class="jxr_javadoccomment">   * @param conn connection to use</em>
-<a class="jxr_linenumber" name="1064" href="#1064">1064</a> <em class="jxr_javadoccomment">   * @param tableName table to fetch state for</em>
-<a class="jxr_linenumber" name="1065" href="#1065">1065</a> <em class="jxr_javadoccomment">   * @return state</em>
-<a class="jxr_linenumber" name="1066" href="#1066">1066</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="1067" href="#1067">1067</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1068" href="#1068">1068</a>   @Nullable
-<a class="jxr_linenumber" name="1069" href="#1069">1069</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a> getTableState(<a href="../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> conn, <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">TableName</a> tableName)
-<a class="jxr_linenumber" name="1070" href="#1070">1070</a>       <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1071" href="#1071">1071</a>     <a href="../../../../org/apache/hadoop/hbase/client/Table.html">Table</a> metaHTable = getMetaHTable(conn);
-<a class="jxr_linenumber" name="1072" href="#1072">1072</a>     <a href="../../../../org/apache/hadoop/hbase/client/Get.html">Get</a> get = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/client/Get.html">Get</a>(tableName.getName()).addColumn(getTableFamily(), getStateColumn());
-<a class="jxr_linenumber" name="1073" href="#1073">1073</a>     <strong class="jxr_keyword">long</strong> time = EnvironmentEdgeManager.currentTime();
-<a class="jxr_linenumber" name="1074" href="#1074">1074</a>     get.setTimeRange(0, time);
-<a class="jxr_linenumber" name="1075" href="#1075">1075</a>     <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> result =
-<a class="jxr_linenumber" name="1076" href="#1076">1076</a>         metaHTable.get(get);
-<a class="jxr_linenumber" name="1077" href="#1077">1077</a>     <strong class="jxr_keyword">return</strong> getTableState(result);
-<a class="jxr_linenumber" name="1078" href="#1078">1078</a>   }
-<a class="jxr_linenumber" name="1079" href="#1079">1079</a> 
-<a class="jxr_linenumber" name="1080" href="#1080">1080</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1081" href="#1081">1081</a> <em class="jxr_javadoccomment">   * Fetch table states from META table</em>
-<a class="jxr_linenumber" name="1082" href="#1082">1082</a> <em class="jxr_javadoccomment">   * @param conn connection to use</em>
-<a class="jxr_linenumber" name="1083" href="#1083">1083</a> <em class="jxr_javadoccomment">   * @return map {tableName -&amp;gt; state}</em>
-<a class="jxr_linenumber" name="1084" href="#1084">1084</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="1085" href="#1085">1085</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1086" href="#1086">1086</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Map&lt;TableName, TableState&gt; getTableStates(<a href="../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> conn)
-<a class="jxr_linenumber" name="1087" href="#1087">1087</a>       <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1088" href="#1088">1088</a>     <strong class="jxr_keyword">final</strong> Map&lt;TableName, TableState&gt; states = <strong class="jxr_keyword">new</strong> LinkedHashMap&lt;&gt;();
-<a class="jxr_linenumber" name="1089" href="#1089">1089</a>     <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> collector = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a>() {
-<a class="jxr_linenumber" name="1090" href="#1090">1090</a>       @Override
-<a class="jxr_linenumber" name="1091" href="#1091">1091</a>       <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> visit(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1092" href="#1092">1092</a>         <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a> state = getTableState(r);
-<a class="jxr_linenumber" name="1093" href="#1093">1093</a>         <strong class="jxr_keyword">if</strong> (state != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="1094" href="#1094">1094</a>           states.put(state.getTableName(), state);
-<a class="jxr_linenumber" name="1095" href="#1095">1095</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="1096" href="#1096">1096</a>       }
-<a class="jxr_linenumber" name="1097" href="#1097">1097</a>     };
-<a class="jxr_linenumber" name="1098" href="#1098">1098</a>     fullScanTables(conn, collector);
-<a class="jxr_linenumber" name="1099" href="#1099">1099</a>     <strong class="jxr_keyword">return</strong> states;
-<a class="jxr_linenumber" name="1100" href="#1100">1100</a>   }
-<a class="jxr_linenumber" name="1101" href="#1101">1101</a> 
-<a class="jxr_linenumber" name="1102" href="#1102">1102</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1103" href="#1103">1103</a> <em class="jxr_javadoccomment">   * Updates state in META</em>
-<a class="jxr_linenumber" name="1104" href="#1104">1104</a> <em class="jxr_javadoccomment">   * @param conn connection to use</em>
-<a class="jxr_linenumber" name="1105" href="#1105">1105</a> <em class="jxr_javadoccomment">   * @param tableName table to look for</em>
-<a class="jxr_linenumber" name="1106" href="#1106">1106</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="1107" href="#1107">1107</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1108" href="#1108">1108</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> updateTableState(<a href="../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> conn, <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">TableName</a> tableName,
-<a class="jxr_linenumber" name="1109" href="#1109">1109</a>       TableState.State actual) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1110" href="#1110">1110</a>     updateTableState(conn, <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a>(tableName, actual));
-<a class="jxr_linenumber" name="1111" href="#1111">1111</a>   }
-<a class="jxr_linenumber" name="1112" href="#1112">1112</a> 
-<a class="jxr_linenumber" name="1113" href="#1113">1113</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1114" href="#1114">1114</a> <em class="jxr_javadoccomment">   * Decode table state from META Result.</em>
-<a class="jxr_linenumber" name="1115" href="#1115">1115</a> <em class="jxr_javadoccomment">   * Should contain cell from HConstants.TABLE_FAMILY</em>
-<a class="jxr_linenumber" name="1116" href="#1116">1116</a> <em class="jxr_javadoccomment">   * @param r result</em>
-<a class="jxr_linenumber" name="1117" href="#1117">1117</a> <em class="jxr_javadoccomment">   * @return null if not found</em>
-<a class="jxr_linenumber" name="1118" href="#1118">1118</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="1119" href="#1119">1119</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1120" href="#1120">1120</a>   @Nullable
-<a class="jxr_linenumber" name="1121" href="#1121">1121</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a> getTableState(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r)
-<a class="jxr_linenumber" name="1122" href="#1122">1122</a>       <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1123" href="#1123">1123</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getTableFamily(), getStateColumn());
-<a class="jxr_linenumber" name="1124" href="#1124">1124</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="1125" href="#1125">1125</a>     <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="1126" href="#1126">1126</a>       <strong class="jxr_keyword">return</strong> TableState.parseFrom(TableName.valueOf(r.getRow()),
-<a class="jxr_linenumber" name="1127" href="#1127">1127</a>           Arrays.copyOfRange(cell.getValueArray(),
-<a class="jxr_linenumber" name="1128" href="#1128">1128</a>           cell.getValueOffset(), cell.getValueOffset() + cell.getValueLength()));
-<a class="jxr_linenumber" name="1129" href="#1129">1129</a>     } <strong class="jxr_keyword">catch</strong> (DeserializationException e) {
-<a class="jxr_linenumber" name="1130" href="#1130">1130</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(e);
-<a class="jxr_linenumber" name="1131" href="#1131">1131</a>     }
-<a class="jxr_linenumber" name="1132" href="#1132">1132</a> 
-<a class="jxr_linenumber" name="1133" href="#1133">1133</a>   }
-<a class="jxr_linenumber" name="1134" href="#1134">1134</a> 
-<a class="jxr_linenumber" name="1135" href="#1135">1135</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1136" href="#1136">1136</a> <em class="jxr_javadoccomment">   * Implementations 'visit' a catalog table row.</em>
-<a class="jxr_linenumber" name="1137" href="#1137">1137</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1138" href="#1138">1138</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> {
-<a class="jxr_linenumber" name="1139" href="#1139">1139</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1140" href="#1140">1140</a> <em class="jxr_javadoccomment">     * Visit the catalog table row.</em>
-<a class="jxr_linenumber" name="1141" href="#1141">1141</a> <em class="jxr_javadoccomment">     * @param r A row from catalog table</em>
-<a class="jxr_linenumber" name="1142" href="#1142">1142</a> <em class="jxr_javadoccomment">     * @return True if we are to proceed scanning the table, else false if</em>
-<a class="jxr_linenumber" name="1143" href="#1143">1143</a> <em class="jxr_javadoccomment">     * we are to stop now.</em>
-<a class="jxr_linenumber" name="1144" href="#1144">1144</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="1145" href="#1145">1145</a>     <strong class="jxr_keyword">boolean</strong> visit(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) <strong class="jxr_keyword">throws</strong> IOException;
-<a class="jxr_linenumber" name="1146" href="#1146">1146</a>   }
-<a class="jxr_linenumber" name="1147" href="#1147">1147</a> 
-<a class="jxr_linenumber" name="1148" href="#1148">1148</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1149" href="#1149">1149</a> <em class="jxr_javadoccomment">   * Implementations 'visit' a catalog table row but with close() at the end.</em>
-<a class="jxr_linenumber" name="1150" href="#1150">1150</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1151" href="#1151">1151</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">CloseableVisitor</a> <strong class="jxr_keyword">extends</strong> Visitor, Closeable {
+<a class="jxr_linenumber" name="972" href="#972">972</a>     <em class="jxr_comment">// iterate until all serverName columns are seen</em>
+<a class="jxr_linenumber" name="973" href="#973">973</a>     <strong class="jxr_keyword">int</strong> replicaId = 0;
+<a class="jxr_linenumber" name="974" href="#974">974</a>     byte[] serverColumn = getServerColumn(replicaId);
+<a class="jxr_linenumber" name="975" href="#975">975</a>     SortedMap&lt;byte[], byte[]&gt; serverMap = infoMap.tailMap(serverColumn, false);
+<a class="jxr_linenumber" name="976" href="#976">976</a>     <strong class="jxr_keyword">if</strong> (serverMap.isEmpty()) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> RegionLocations(locations);
+<a class="jxr_linenumber" name="977" href="#977">977</a> 
+<a class="jxr_linenumber" name="978" href="#978">978</a>     <strong class="jxr_keyword">for</strong> (Map.Entry&lt;byte[], byte[]&gt; entry : serverMap.entrySet()) {
+<a class="jxr_linenumber" name="979" href="#979">979</a>       replicaId = parseReplicaIdFromServerColumn(entry.getKey());
+<a class="jxr_linenumber" name="980" href="#980">980</a>       <strong class="jxr_keyword">if</strong> (replicaId &lt; 0) {
+<a class="jxr_linenumber" name="981" href="#981">981</a>         <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="982" href="#982">982</a>       }
+<a class="jxr_linenumber" name="983" href="#983">983</a>       <a href="../../../../org/apache/hadoop/hbase/HRegionLocation.html">HRegionLocation</a> location = getRegionLocation(r, regionInfo, replicaId);
+<a class="jxr_linenumber" name="984" href="#984">984</a>       <em class="jxr_comment">// In case the region replica is newly created, it's location might be null. We usually do not</em>
+<a class="jxr_linenumber" name="985" href="#985">985</a>       <em class="jxr_comment">// have HRL's in RegionLocations object with null ServerName. They are handled as null HRLs.</em>
+<a class="jxr_linenumber" name="986" href="#986">986</a>       <strong class="jxr_keyword">if</strong> (location == <strong class="jxr_keyword">null</strong> || location.getServerName() == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="987" href="#987">987</a>         locations.add(<strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="988" href="#988">988</a>       } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="989" href="#989">989</a>         locations.add(location);
+<a class="jxr_linenumber" name="990" href="#990">990</a>       }
+<a class="jxr_linenumber" name="991" href="#991">991</a>     }
+<a class="jxr_linenumber" name="992" href="#992">992</a> 
+<a class="jxr_linenumber" name="993" href="#993">993</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/RegionLocations.html">RegionLocations</a>(locations);
+<a class="jxr_linenumber" name="994" href="#994">994</a>   }
+<a class="jxr_linenumber" name="995" href="#995">995</a> 
+<a class="jxr_linenumber" name="996" href="#996">996</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="997" href="#997">997</a> <em class="jxr_javadoccomment">   * Returns the HRegionLocation parsed from the given meta row Result</em>
+<a class="jxr_linenumber" name="998" href="#998">998</a> <em class="jxr_javadoccomment">   * for the given regionInfo and replicaId. The regionInfo can be the default region info</em>
+<a class="jxr_linenumber" name="999" href="#999">999</a> <em class="jxr_javadoccomment">   * for the replica.</em>
+<a class="jxr_linenumber" name="1000" href="#1000">1000</a> <em class="jxr_javadoccomment">   * @param r the meta row result</em>
+<a class="jxr_linenumber" name="1001" href="#1001">1001</a> <em class="jxr_javadoccomment">   * @param regionInfo RegionInfo for default replica</em>
+<a class="jxr_linenumber" name="1002" href="#1002">1002</a> <em class="jxr_javadoccomment">   * @param replicaId the replicaId for the HRegionLocation</em>
+<a class="jxr_linenumber" name="1003" href="#1003">1003</a> <em class="jxr_javadoccomment">   * @return HRegionLocation parsed from the given meta row Result for the given replicaId</em>
+<a class="jxr_linenumber" name="1004" href="#1004">1004</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1005" href="#1005">1005</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionLocation.html">HRegionLocation</a> getRegionLocation(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> regionInfo,
+<a class="jxr_linenumber" name="1006" href="#1006">1006</a>                                                    <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> replicaId) {
+<a class="jxr_linenumber" name="1007" href="#1007">1007</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">ServerName</a> serverName = getServerName(r, replicaId);
+<a class="jxr_linenumber" name="1008" href="#1008">1008</a>     <strong class="jxr_keyword">long</strong> seqNum = getSeqNumDuringOpen(r, replicaId);
+<a class="jxr_linenumber" name="1009" href="#1009">1009</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> replicaInfo = RegionReplicaUtil.getRegionInfoForReplica(regionInfo, replicaId);
+<a class="jxr_linenumber" name="1010" href="#1010">1010</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionLocation.html">HRegionLocation</a>(replicaInfo, serverName, seqNum);
+<a class="jxr_linenumber" name="1011" href="#1011">1011</a>   }
+<a class="jxr_linenumber" name="1012" href="#1012">1012</a> 
+<a class="jxr_linenumber" name="1013" href="#1013">1013</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1014" href="#1014">1014</a> <em class="jxr_javadoccomment">   * Returns HRegionInfo object from the column</em>
+<a class="jxr_linenumber" name="1015" href="#1015">1015</a> <em class="jxr_javadoccomment">   * HConstants.CATALOG_FAMILY:HConstants.REGIONINFO_QUALIFIER of the catalog</em>
+<a class="jxr_linenumber" name="1016" href="#1016">1016</a> <em class="jxr_javadoccomment">   * table Result.</em>
+<a class="jxr_linenumber" name="1017" href="#1017">1017</a> <em class="jxr_javadoccomment">   * @param data a Result object from the catalog table scan</em>
+<a class="jxr_linenumber" name="1018" href="#1018">1018</a> <em class="jxr_javadoccomment">   * @return HRegionInfo or null</em>
+<a class="jxr_linenumber" name="1019" href="#1019">1019</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1020" href="#1020">1020</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> getHRegionInfo(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> data) {
+<a class="jxr_linenumber" name="1021" href="#1021">1021</a>     <strong class="jxr_keyword">return</strong> getHRegionInfo(data, HConstants.REGIONINFO_QUALIFIER);
+<a class="jxr_linenumber" name="1022" href="#1022">1022</a>   }
+<a class="jxr_linenumber" name="1023" href="#1023">1023</a> 
+<a class="jxr_linenumber" name="1024" href="#1024">1024</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1025" href="#1025">1025</a> <em class="jxr_javadoccomment">   * Returns the HRegionInfo object from the column {@link HConstants#CATALOG_FAMILY} and</em>
+<a class="jxr_linenumber" name="1026" href="#1026">1026</a> <em class="jxr_javadoccomment">   * &lt;code&gt;qualifier&lt;/code&gt; of the catalog table result.</em>
+<a class="jxr_linenumber" name="1027" href="#1027">1027</a> <em class="jxr_javadoccomment">   * @param r a Result object from the catalog table scan</em>
+<a class="jxr_linenumber" name="1028" href="#1028">1028</a> <em class="jxr_javadoccomment">   * @param qualifier Column family qualifier</em>
+<a class="jxr_linenumber" name="1029" href="#1029">1029</a> <em class="jxr_javadoccomment">   * @return An HRegionInfo instance or null.</em>
+<a class="jxr_linenumber" name="1030" href="#1030">1030</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1031" href="#1031">1031</a>   @Nullable
+<a class="jxr_linenumber" name="1032" href="#1032">1032</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> getHRegionInfo(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r, byte [] qualifier) {
+<a class="jxr_linenumber" name="1033" href="#1033">1033</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getCatalogFamily(), qualifier);
+<a class="jxr_linenumber" name="1034" href="#1034">1034</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="1035" href="#1035">1035</a>     <strong class="jxr_keyword">return</strong> HRegionInfo.parseFromOrNull(cell.getValueArray(),
+<a class="jxr_linenumber" name="1036" href="#1036">1036</a>       cell.getValueOffset(), cell.getValueLength());
+<a class="jxr_linenumber" name="1037" href="#1037">1037</a>   }
+<a class="jxr_linenumber" name="1038" href="#1038">1038</a> 
+<a class="jxr_linenumber" name="1039" href="#1039">1039</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1040" href="#1040">1040</a> <em class="jxr_javadoccomment">   * Returns the daughter regions by reading the corresponding columns of the catalog table</em>
+<a class="jxr_linenumber" name="1041" href="#1041">1041</a> <em class="jxr_javadoccomment">   * Result.</em>
+<a class="jxr_linenumber" name="1042" href="#1042">1042</a> <em class="jxr_javadoccomment">   * @param data a Result object from the catalog table scan</em>
+<a class="jxr_linenumber" name="1043" href="#1043">1043</a> <em class="jxr_javadoccomment">   * @return a pair of HRegionInfo or PairOfSameType(null, null) if the region is not a split</em>
+<a class="jxr_linenumber" name="1044" href="#1044">1044</a> <em class="jxr_javadoccomment">   * parent</em>
+<a class="jxr_linenumber" name="1045" href="#1045">1045</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1046" href="#1046">1046</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PairOfSameType&lt;HRegionInfo&gt; getDaughterRegions(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> data) {
+<a class="jxr_linenumber" name="1047" href="#1047">1047</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> splitA = getHRegionInfo(data, HConstants.SPLITA_QUALIFIER);
+<a class="jxr_linenumber" name="1048" href="#1048">1048</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> splitB = getHRegionInfo(data, HConstants.SPLITB_QUALIFIER);
+<a class="jxr_linenumber" name="1049" href="#1049">1049</a> 
+<a class="jxr_linenumber" name="1050" href="#1050">1050</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> PairOfSameType&lt;HRegionInfo&gt;(splitA, splitB);
+<a class="jxr_linenumber" name="1051" href="#1051">1051</a>   }
+<a class="jxr_linenumber" name="1052" href="#1052">1052</a> 
+<a class="jxr_linenumber" name="1053" href="#1053">1053</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1054" href="#1054">1054</a> <em class="jxr_javadoccomment">   * Returns the merge regions by reading the corresponding columns of the catalog table</em>
+<a class="jxr_linenumber" name="1055" href="#1055">1055</a> <em class="jxr_javadoccomment">   * Result.</em>
+<a class="jxr_linenumber" name="1056" href="#1056">1056</a> <em class="jxr_javadoccomment">   * @param data a Result object from the catalog table scan</em>
+<a class="jxr_linenumber" name="1057" href="#1057">1057</a> <em class="jxr_javadoccomment">   * @return a pair of HRegionInfo or PairOfSameType(null, null) if the region is not a split</em>
+<a class="jxr_linenumber" name="1058" href="#1058">1058</a> <em class="jxr_javadoccomment">   * parent</em>
+<a class="jxr_linenumber" name="1059" href="#1059">1059</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1060" href="#1060">1060</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> PairOfSameType&lt;HRegionInfo&gt; getMergeRegions(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> data) {
+<a class="jxr_linenumber" name="1061" href="#1061">1061</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> mergeA = getHRegionInfo(data, HConstants.MERGEA_QUALIFIER);
+<a class="jxr_linenumber" name="1062" href="#1062">1062</a>     <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> mergeB = getHRegionInfo(data, HConstants.MERGEB_QUALIFIER);
+<a class="jxr_linenumber" name="1063" href="#1063">1063</a> 
+<a class="jxr_linenumber" name="1064" href="#1064">1064</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> PairOfSameType&lt;HRegionInfo&gt;(mergeA, mergeB);
+<a class="jxr_linenumber" name="1065" href="#1065">1065</a>   }
+<a class="jxr_linenumber" name="1066" href="#1066">1066</a> 
+<a class="jxr_linenumber" name="1067" href="#1067">1067</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1068" href="#1068">1068</a> <em class="jxr_javadoccomment">   * Fetch table state for given table from META table</em>
+<a class="jxr_linenumber" name="1069" href="#1069">1069</a> <em class="jxr_javadoccomment">   * @param conn connection to use</em>
+<a class="jxr_linenumber" name="1070" href="#1070">1070</a> <em class="jxr_javadoccomment">   * @param tableName table to fetch state for</em>
+<a class="jxr_linenumber" name="1071" href="#1071">1071</a> <em class="jxr_javadoccomment">   * @return state</em>
+<a class="jxr_linenumber" name="1072" href="#1072">1072</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
+<a class="jxr_linenumber" name="1073" href="#1073">1073</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1074" href="#1074">1074</a>   @Nullable
+<a class="jxr_linenumber" name="1075" href="#1075">1075</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a> getTableState(<a href="../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> conn, <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">TableName</a> tableName)
+<a class="jxr_linenumber" name="1076" href="#1076">1076</a>       <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="1077" href="#1077">1077</a>     <a href="../../../../org/apache/hadoop/hbase/client/Table.html">Table</a> metaHTable = getMetaHTable(conn);
+<a class="jxr_linenumber" name="1078" href="#1078">1078</a>     <a href="../../../../org/apache/hadoop/hbase/client/Get.html">Get</a> get = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/client/Get.html">Get</a>(tableName.getName()).addColumn(getTableFamily(), getStateColumn());
+<a class="jxr_linenumber" name="1079" href="#1079">1079</a>     <strong class="jxr_keyword">long</strong> time = EnvironmentEdgeManager.currentTime();
+<a class="jxr_linenumber" name="1080" href="#1080">1080</a>     get.setTimeRange(0, time);
+<a class="jxr_linenumber" name="1081" href="#1081">1081</a>     <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> result =
+<a class="jxr_linenumber" name="1082" href="#1082">1082</a>         metaHTable.get(get);
+<a class="jxr_linenumber" name="1083" href="#1083">1083</a>     <strong class="jxr_keyword">return</strong> getTableState(result);
+<a class="jxr_linenumber" name="1084" href="#1084">1084</a>   }
+<a class="jxr_linenumber" name="1085" href="#1085">1085</a> 
+<a class="jxr_linenumber" name="1086" href="#1086">1086</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1087" href="#1087">1087</a> <em class="jxr_javadoccomment">   * Fetch table states from META table</em>
+<a class="jxr_linenumber" name="1088" href="#1088">1088</a> <em class="jxr_javadoccomment">   * @param conn connection to use</em>
+<a class="jxr_linenumber" name="1089" href="#1089">1089</a> <em class="jxr_javadoccomment">   * @return map {tableName -&amp;gt; state}</em>
+<a class="jxr_linenumber" name="1090" href="#1090">1090</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
+<a class="jxr_linenumber" name="1091" href="#1091">1091</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1092" href="#1092">1092</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Map&lt;TableName, TableState&gt; getTableStates(<a href="../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> conn)
+<a class="jxr_linenumber" name="1093" href="#1093">1093</a>       <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="1094" href="#1094">1094</a>     <strong class="jxr_keyword">final</strong> Map&lt;TableName, TableState&gt; states = <strong class="jxr_keyword">new</strong> LinkedHashMap&lt;&gt;();
+<a class="jxr_linenumber" name="1095" href="#1095">1095</a>     <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> collector = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a>() {
+<a class="jxr_linenumber" name="1096" href="#1096">1096</a>       @Override
+<a class="jxr_linenumber" name="1097" href="#1097">1097</a>       <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> visit(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="1098" href="#1098">1098</a>         <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a> state = getTableState(r);
+<a class="jxr_linenumber" name="1099" href="#1099">1099</a>         <strong class="jxr_keyword">if</strong> (state != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="1100" href="#1100">1100</a>           states.put(state.getTableName(), state);
+<a class="jxr_linenumber" name="1101" href="#1101">1101</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="1102" href="#1102">1102</a>       }
+<a class="jxr_linenumber" name="1103" href="#1103">1103</a>     };
+<a class="jxr_linenumber" name="1104" href="#1104">1104</a>     fullScanTables(conn, collector);
+<a class="jxr_linenumber" name="1105" href="#1105">1105</a>     <strong class="jxr_keyword">return</strong> states;
+<a class="jxr_linenumber" name="1106" href="#1106">1106</a>   }
+<a class="jxr_linenumber" name="1107" href="#1107">1107</a> 
+<a class="jxr_linenumber" name="1108" href="#1108">1108</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1109" href="#1109">1109</a> <em class="jxr_javadoccomment">   * Updates state in META</em>
+<a class="jxr_linenumber" name="1110" href="#1110">1110</a> <em class="jxr_javadoccomment">   * @param conn connection to use</em>
+<a class="jxr_linenumber" name="1111" href="#1111">1111</a> <em class="jxr_javadoccomment">   * @param tableName table to look for</em>
+<a class="jxr_linenumber" name="1112" href="#1112">1112</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
+<a class="jxr_linenumber" name="1113" href="#1113">1113</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1114" href="#1114">1114</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> updateTableState(<a href="../../../../org/apache/hadoop/hbase/client/Connection.html">Connection</a> conn, <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">TableName</a> tableName,
+<a class="jxr_linenumber" name="1115" href="#1115">1115</a>       TableState.State actual) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="1116" href="#1116">1116</a>     updateTableState(conn, <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a>(tableName, actual));
+<a class="jxr_linenumber" name="1117" href="#1117">1117</a>   }
+<a class="jxr_linenumber" name="1118" href="#1118">1118</a> 
+<a class="jxr_linenumber" name="1119" href="#1119">1119</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1120" href="#1120">1120</a> <em class="jxr_javadoccomment">   * Decode table state from META Result.</em>
+<a class="jxr_linenumber" name="1121" href="#1121">1121</a> <em class="jxr_javadoccomment">   * Should contain cell from HConstants.TABLE_FAMILY</em>
+<a class="jxr_linenumber" name="1122" href="#1122">1122</a> <em class="jxr_javadoccomment">   * @param r result</em>
+<a class="jxr_linenumber" name="1123" href="#1123">1123</a> <em class="jxr_javadoccomment">   * @return null if not found</em>
+<a class="jxr_linenumber" name="1124" href="#1124">1124</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
+<a class="jxr_linenumber" name="1125" href="#1125">1125</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1126" href="#1126">1126</a>   @Nullable
+<a class="jxr_linenumber" name="1127" href="#1127">1127</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <a href="../../../../org/apache/hadoop/hbase/client/TableState.html">TableState</a> getTableState(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r)
+<a class="jxr_linenumber" name="1128" href="#1128">1128</a>       <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="1129" href="#1129">1129</a>     <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/CellProtos.html">Cell</a> cell = r.getColumnLatestCell(getTableFamily(), getStateColumn());
+<a class="jxr_linenumber" name="1130" href="#1130">1130</a>     <strong class="jxr_keyword">if</strong> (cell == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="1131" href="#1131">1131</a>     <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="1132" href="#1132">1132</a>       <strong class="jxr_keyword">return</strong> TableState.parseFrom(TableName.valueOf(r.getRow()),
+<a class="jxr_linenumber" name="1133" href="#1133">1133</a>           Arrays.copyOfRange(cell.getValueArray(),
+<a class="jxr_linenumber" name="1134" href="#1134">1134</a>           cell.getValueOffset(), cell.getValueOffset() + cell.getValueLength()));
+<a class="jxr_linenumber" name="1135" href="#1135">1135</a>     } <strong class="jxr_keyword">catch</strong> (DeserializationException e) {
+<a class="jxr_linenumber" name="1136" href="#1136">1136</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(e);
+<a class="jxr_linenumber" name="1137" href="#1137">1137</a>     }
+<a class="jxr_linenumber" name="1138" href="#1138">1138</a> 
+<a class="jxr_linenumber" name="1139" href="#1139">1139</a>   }
+<a class="jxr_linenumber" name="1140" href="#1140">1140</a> 
+<a class="jxr_linenumber" name="1141" href="#1141">1141</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1142" href="#1142">1142</a> <em class="jxr_javadoccomment">   * Implementations 'visit' a catalog table row.</em>
+<a class="jxr_linenumber" name="1143" href="#1143">1143</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1144" href="#1144">1144</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> {
+<a class="jxr_linenumber" name="1145" href="#1145">1145</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1146" href="#1146">1146</a> <em class="jxr_javadoccomment">     * Visit the catalog table row.</em>
+<a class="jxr_linenumber" name="1147" href="#1147">1147</a> <em class="jxr_javadoccomment">     * @param r A row from catalog table</em>
+<a class="jxr_linenumber" name="1148" href="#1148">1148</a> <em class="jxr_javadoccomment">     * @return True if we are to proceed scanning the table, else false if</em>
+<a class="jxr_linenumber" name="1149" href="#1149">1149</a> <em class="jxr_javadoccomment">     * we are to stop now.</em>
+<a class="jxr_linenumber" name="1150" href="#1150">1150</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="1151" href="#1151">1151</a>     <strong class="jxr_keyword">boolean</strong> visit(<strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) <strong class="jxr_keyword">throws</strong> IOException;
 <a class="jxr_linenumber" name="1152" href="#1152">1152</a>   }
 <a class="jxr_linenumber" name="1153" href="#1153">1153</a> 
 <a class="jxr_linenumber" name="1154" href="#1154">1154</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1155" href="#1155">1155</a> <em class="jxr_javadoccomment">   * A {@link Visitor} that collects content out of passed {@link Result}.</em>
+<a class="jxr_linenumber" name="1155" href="#1155">1155</a> <em class="jxr_javadoccomment">   * Implementations 'visit' a catalog table row but with close() at the end.</em>
 <a class="jxr_linenumber" name="1156" href="#1156">1156</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1157" href="#1157">1157</a>   <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> CollectingVisitor&lt;T&gt; <strong class="jxr_keyword">implements</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> {
-<a class="jxr_linenumber" name="1158" href="#1158">1158</a>     <strong class="jxr_keyword">final</strong> List&lt;T&gt; results = <strong class="jxr_keyword">new</strong> ArrayList&lt;T&gt;();
-<a class="jxr_linenumber" name="1159" href="#1159">1159</a>     @Override
-<a class="jxr_linenumber" name="1160" href="#1160">1160</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> visit(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1161" href="#1161">1161</a>       <strong class="jxr_keyword">if</strong> (r ==  <strong class="jxr_keyword">null</strong> || r.isEmpty()) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="1162" href="#1162">1162</a>       add(r);
-<a class="jxr_linenumber" name="1163" href="#1163">1163</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="1164" href="#1164">1164</a>     }
-<a class="jxr_linenumber" name="1165" href="#1165">1165</a> 
-<a class="jxr_linenumber" name="1166" href="#1166">1166</a>     <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> add(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r);
-<a class="jxr_linenumber" name="1167" href="#1167">1167</a> 
-<a class="jxr_linenumber" name="1168" href="#1168">1168</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1169" href="#1169">1169</a> <em class="jxr_javadoccomment">     * @return Collected results; wait till visits complete to collect all</em>
-<a class="jxr_linenumber" name="1170" href="#1170">1170</a> <em class="jxr_javadoccomment">     * possible results</em>
-<a class="jxr_linenumber" name="1171" href="#1171">1171</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="1172" href="#1172">1172</a>     List&lt;T&gt; getResults() {
-<a class="jxr_linenumber" name="1173" href="#1173">1173</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.results;
-<a class="jxr_linenumber" name="1174" href="#1174">1174</a>     }
-<a class="jxr_linenumber" name="1175" href="#1175">1175</a>   }
-<a class="jxr_linenumber" name="1176" href="#1176">1176</a> 
-<a class="jxr_linenumber" name="1177" href="#1177">1177</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1178" href="#1178">1178</a> <em class="jxr_javadoccomment">   * Collects all returned.</em>
-<a class="jxr_linenumber" name="1179" href="#1179">1179</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1180" href="#1180">1180</a>   <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">CollectAllVisitor</a> <strong class="jxr_keyword">extends</strong> CollectingVisitor&lt;Result&gt; {
-<a class="jxr_linenumber" name="1181" href="#1181">1181</a>     @Override
-<a class="jxr_linenumber" name="1182" href="#1182">1182</a>     <strong class="jxr_keyword">void</strong> add(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) {
-<a class="jxr_linenumber" name="1183" href="#1183">1183</a>       <strong class="jxr_keyword">this</strong>.results.add(r);
-<a class="jxr_linenumber" name="1184" href="#1184">1184</a>     }
-<a class="jxr_linenumber" name="1185" href="#1185">1185</a>   }
-<a class="jxr_linenumber" name="1186" href="#1186">1186</a> 
-<a class="jxr_linenumber" name="1187" href="#1187">1187</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1188" href="#1188">1188</a> <em class="jxr_javadoccomment">   * A Visitor that skips offline regions and split parents</em>
-<a class="jxr_linenumber" name="1189" href="#1189">1189</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1190" href="#1190">1190</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">DefaultVisitorBase</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> {
-<a class="jxr_linenumber" name="1191" href="#1191">1191</a> 
-<a class="jxr_linenumber" name="1192" href="#1192">1192</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">DefaultVisitorBase</a>() {
-<a class="jxr_linenumber" name="1193" href="#1193">1193</a>       <strong class="jxr_keyword">super</strong>();
-<a class="jxr_linenumber" name="1194" href="#1194">1194</a>     }
-<a class="jxr_linenumber" name="1195" href="#1195">1195</a> 
-<a class="jxr_linenumber" name="1196" href="#1196">1196</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">boolean</strong> visitInternal(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> rowResult) <strong class="jxr_keyword">throws</strong> IOException;
+<a class="jxr_linenumber" name="1157" href="#1157">1157</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">CloseableVisitor</a> <strong class="jxr_keyword">extends</strong> Visitor, Closeable {
+<a class="jxr_linenumber" name="1158" href="#1158">1158</a>   }
+<a class="jxr_linenumber" name="1159" href="#1159">1159</a> 
+<a class="jxr_linenumber" name="1160" href="#1160">1160</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1161" href="#1161">1161</a> <em class="jxr_javadoccomment">   * A {@link Visitor} that collects content out of passed {@link Result}.</em>
+<a class="jxr_linenumber" name="1162" href="#1162">1162</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1163" href="#1163">1163</a>   <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> CollectingVisitor&lt;T&gt; <strong class="jxr_keyword">implements</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> {
+<a class="jxr_linenumber" name="1164" href="#1164">1164</a>     <strong class="jxr_keyword">final</strong> List&lt;T&gt; results = <strong class="jxr_keyword">new</strong> ArrayList&lt;T&gt;();
+<a class="jxr_linenumber" name="1165" href="#1165">1165</a>     @Override
+<a class="jxr_linenumber" name="1166" href="#1166">1166</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> visit(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="1167" href="#1167">1167</a>       <strong class="jxr_keyword">if</strong> (r ==  <strong class="jxr_keyword">null</strong> || r.isEmpty()) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="1168" href="#1168">1168</a>       add(r);
+<a class="jxr_linenumber" name="1169" href="#1169">1169</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="1170" href="#1170">1170</a>     }
+<a class="jxr_linenumber" name="1171" href="#1171">1171</a> 
+<a class="jxr_linenumber" name="1172" href="#1172">1172</a>     <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> add(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r);
+<a class="jxr_linenumber" name="1173" href="#1173">1173</a> 
+<a class="jxr_linenumber" name="1174" href="#1174">1174</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1175" href="#1175">1175</a> <em class="jxr_javadoccomment">     * @return Collected results; wait till visits complete to collect all</em>
+<a class="jxr_linenumber" name="1176" href="#1176">1176</a> <em class="jxr_javadoccomment">     * possible results</em>
+<a class="jxr_linenumber" name="1177" href="#1177">1177</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="1178" href="#1178">1178</a>     List&lt;T&gt; getResults() {
+<a class="jxr_linenumber" name="1179" href="#1179">1179</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.results;
+<a class="jxr_linenumber" name="1180" href="#1180">1180</a>     }
+<a class="jxr_linenumber" name="1181" href="#1181">1181</a>   }
+<a class="jxr_linenumber" name="1182" href="#1182">1182</a> 
+<a class="jxr_linenumber" name="1183" href="#1183">1183</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1184" href="#1184">1184</a> <em class="jxr_javadoccomment">   * Collects all returned.</em>
+<a class="jxr_linenumber" name="1185" href="#1185">1185</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1186" href="#1186">1186</a>   <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">CollectAllVisitor</a> <strong class="jxr_keyword">extends</strong> CollectingVisitor&lt;Result&gt; {
+<a class="jxr_linenumber" name="1187" href="#1187">1187</a>     @Override
+<a class="jxr_linenumber" name="1188" href="#1188">1188</a>     <strong class="jxr_keyword">void</strong> add(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> r) {
+<a class="jxr_linenumber" name="1189" href="#1189">1189</a>       <strong class="jxr_keyword">this</strong>.results.add(r);
+<a class="jxr_linenumber" name="1190" href="#1190">1190</a>     }
+<a class="jxr_linenumber" name="1191" href="#1191">1191</a>   }
+<a class="jxr_linenumber" name="1192" href="#1192">1192</a> 
+<a class="jxr_linenumber" name="1193" href="#1193">1193</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="1194" href="#1194">1194</a> <em class="jxr_javadoccomment">   * A Visitor that skips offline regions and split parents</em>
+<a class="jxr_linenumber" name="1195" href="#1195">1195</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="1196" href="#1196">1196</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">DefaultVisitorBase</a> <strong class="jxr_keyword">implements</strong> <a href="../../../../org/apache/hadoop/hbase/util/ByteBufferArray.html">Visitor</a> {
 <a class="jxr_linenumber" name="1197" href="#1197">1197</a> 
-<a class="jxr_linenumber" name="1198" href="#1198">1198</a>     @Override
-<a class="jxr_linenumber" name="1199" href="#1199">1199</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> visit(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> rowResult) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1200" href="#1200">1200</a>       <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info = getHRegionInfo(rowResult);
-<a class="jxr_linenumber" name="1201" href="#1201">1201</a>       <strong class="jxr_keyword">if</strong> (info == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="1202" href="#1202">1202</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="1203" href="#1203">1203</a>       }
-<a class="jxr_linenumber" name="1204" href="#1204">1204</a> 
-<a class="jxr_linenumber" name="1205" href="#1205">1205</a>       <em class="jxr_comment">//skip over offline and split regions</em>
-<a class="jxr_linenumber" name="1206" href="#1206">1206</a>       <strong class="jxr_keyword">if</strong> (!(info.isOffline() || info.isSplit())) {
-<a class="jxr_linenumber" name="1207" href="#1207">1207</a>         <strong class="jxr_keyword">return</strong> visitInternal(rowResult);
-<a class="jxr_linenumber" name="1208" href="#1208">1208</a>       }
-<a class="jxr_linenumber" name="1209" href="#1209">1209</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="1210" href="#1210">1210</a>     }
-<a class="jxr_linenumber" name="1211" href="#1211">1211</a>   }
-<a class="jxr_linenumber" name="1212" href="#1212">1212</a> 
-<a class="jxr_linenumber" name="1213" href="#1213">1213</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1214" href="#1214">1214</a> <em class="jxr_javadoccomment">   * A Visitor for a table. Provides a consistent view of the table's</em>
-<a class="jxr_linenumber" name="1215" href="#1215">1215</a> <em class="jxr_javadoccomment">   * hbase:meta entries during concurrent splits (see HBASE-5986 for details). This class</em>
-<a class="jxr_linenumber" name="1216" href="#1216">1216</a> <em class="jxr_javadoccomment">   * does not guarantee ordered traversal of meta entries, and can block until the</em>
-<a class="jxr_linenumber" name="1217" href="#1217">1217</a> <em class="jxr_javadoccomment">   * hbase:meta entries for daughters are available during splits.</em>
-<a class="jxr_linenumber" name="1218" href="#1218">1218</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1219" href="#1219">1219</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">TableVisitorBase</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">DefaultVisitorBase</a> {
-<a class="jxr_linenumber" name="1220" href="#1220">1220</a>     <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">TableName</a> tableName;
-<a class="jxr_linenumber" name="1221" href="#1221">1221</a> 
-<a class="jxr_linenumber" name="1222" href="#1222">1222</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.html">TableVisitorBase</a>(<a href="../../../../org/apache/hadoop/hbase/protobuf/generated/HBaseProtos.html">TableName</a> tableName) {
-<a class="jxr_linenumber" name="1223" href="#1223">1223</a>       <strong class="jxr_keyword">super</strong>();
-<a class="jxr_linenumber" name="1224" href="#1224">1224</a>       <strong class="jxr_keyword">this</strong>.tableName = tableName;
-<a class="jxr_linenumber" name="1225" href="#1225">1225</a>     }
-<a class="jxr_linenumber" name="1226" href="#1226">1226</a> 
-<a class="jxr_linenumber" name="1227" href="#1227">1227</a>     @Override
-<a class="jxr_linenumber" name="1228" href="#1228">1228</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> visit(<a href="../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> rowResult) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="1229" href="#1229">1229</a>       <a href="../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info = getHRegionInfo(rowResult);
-<a class="jxr_linenumber" name="1230" href="#1230">1230</a>       <strong class="jxr_keyword">if</strong> (info == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="1231" href="#1231">1231</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="1232" href="#1232">1232</a>       }
-<a class="jxr_linenumber" name="1233" href="#1233">1233</a>       <strong class="jxr_keyword">if</strong> (!(info.getTable().equals(tableName))) {
-<a class="jxr_linenumber" name="1234" href="#1234">1234</a>         <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="1235" href="#1235">1235</a>       }
-<a class="jxr_linenumber" name="1236" href="#1236">1236</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">super</strong>.visit(rowResult);
-<a class="jxr_linenumber" name="1237" href="#1237">1237</a>     }
-<a class="jxr_linenumber" name="1238" href="#1238">1238</a>   }
-<a class="jxr_linenumber" name="1239" href="#1239">1239</a> 
-<a class="jxr_linenumber" name="1240" href="#1240">1240</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="1241" href="#1241">1241</a> <em class="jxr_javadoccomment">   * Count regions in &lt;code&gt;hbase:meta&lt;/code&gt; for passed table.</em>
-<a class="jxr_linenumber" name="1242" href="#1242">1242</a> <em class="jxr_javadoccomment">   * @param c Configuration object</em>
-<a class="jxr_linenumber" name="1243" href="#1243">1243</a> <em class="jxr_javadoccomment">   * @param tableName table name to count regions for</em>
-<a class="jxr_linenumber" name="1244" href="#1244">1244</a> <em class="jxr_javadoccomment">   * @return Count or regions in table &lt;code&gt;tableName&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="1245" href="#1245">1245</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="1246" href="#1246">1246</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="1247" href="#1247">1247</a>   @Deprecated
-<a class="jxr_linenumber" name="1248" href="#1248">1248</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">int</strong> getRegionCount(<strong class="jxr_keyword">final</strong> Configuration c, <strong class="jxr_keyword">final</strong> String tableName)
-<a class="jxr_linenumber" name="1249" href="#1249">1249</a>       <strong class="jxr_keyword">throws</strong> IOException {

[... 1513 lines stripped ...]



Mime
View raw message