int getThenIncrement() {
      int currentIndex = this.index;
      this.index++;
      return currentIndex;
    }
Data structure that holds regionname and index used scanning.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/MockRegionServer.java