Package org.apache.hadoop.hbase.catalog.MetaReader

Examples of org.apache.hadoop.hbase.catalog.MetaReader.Visitor


      FavoredNodeLoadBalancer balancer) throws IOException {
    final Map<HRegionInfo, ServerName> regions =
        new TreeMap<HRegionInfo, ServerName>();
    final Map<HRegionInfo, ServerName[]> favoredNodesMap =
        new HashMap<HRegionInfo, ServerName[]>();
    Visitor v = new Visitor() {
      @Override
      public boolean visit(Result r) throws IOException {
        if (r ==  null || r.isEmpty()) return true;
        Pair<HRegionInfo, ServerName> region = HRegionInfo.getHRegionInfoAndServerName(r);
        HRegionInfo hri = region.getFirst();
View Full Code Here


   */
  public void initialize() throws IOException {
    LOG.info("Start to scan the hbase:meta for the current region assignment " +
    "snappshot");
    // TODO: at some point this code could live in the MetaReader
    Visitor v = new Visitor() {
      @Override
      public boolean visit(Result result) throws IOException {
        try {
          if (result ==  null || result.isEmpty()) return true;
          Pair<HRegionInfo, ServerName> regionAndServer =
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.catalog.MetaReader.Visitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.