@Override
    public Result next() throws IOException {
      if (!moreRows) {
        return null;
      }
      for (;;) {
        moreRows = scanner.next(cells);
        if (cells.isEmpty()) {
          if (!moreRows) {
            return null;
          } else {
            continue;
          }
        }
        Result result = Result.create(cells);
        cells.clear();
        return result;
      }
    }
@param region Region to decorate with Table API.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/RegionAsTable.java