Package org.apache.hadoop.hbase.MetaTableAccessor

Examples of org.apache.hadoop.hbase.MetaTableAccessor.Visitor


   */
  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 MetaTableAccessor
    Visitor v = new Visitor() {
      @Override
      public boolean visit(Result result) throws IOException {
        try {
          if (result ==  null || result.isEmpty()) return true;
          RegionLocations rl = MetaTableAccessor.getRegionLocations(result);
View Full Code Here


  private void validateNumberOfRowsInMeta(final TableName table, int numRegions,
      HConnection hConnection) throws IOException {
    assert(admin.tableExists(table));
    final AtomicInteger count = new AtomicInteger();
    Visitor visitor = new Visitor() {
      @Override
      public boolean visit(Result r) throws IOException {
        if (HRegionInfo.getHRegionInfo(r).getTable().equals(table)) count.incrementAndGet();
        return true;
      }
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 MetaTableAccessor
    Visitor v = new Visitor() {
      @Override
      public boolean visit(Result result) throws IOException {
        try {
          if (result ==  null || result.isEmpty()) return true;
          RegionLocations rl = MetaTableAccessor.getRegionLocations(result);
View Full Code Here

  private void validateNumberOfRowsInMeta(final TableName table, int numRegions,
      Connection connection) throws IOException {
    assert(admin.tableExists(table));
    final AtomicInteger count = new AtomicInteger();
    Visitor visitor = new Visitor() {
      @Override
      public boolean visit(Result r) throws IOException {
        if (HRegionInfo.getHRegionInfo(r).getTable().equals(table)) count.incrementAndGet();
        return true;
      }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.MetaTableAccessor.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.