public static CellScanner createCellScanner(final Cell[] cellArray) {
    return new CellScanner() {
      private final Cell[] cells = cellArray;
      private int index = -1;

      @Override
      public Cell current() {
        if (cells == null) {
          return null;
        }
        return (index < 0) ? null : this.cells[index];
      }

      @Override
      public boolean advance() {
        if (cells == null) {
          return false;
        }
        return ++index < this.cells.length;
      }
    };
  }
Returns CellScanner interface over <code>cellArray</code>
hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java