@Override
  public String toString() {
    StringBuilder sb = new StringBuilder();

    sb.append("[#edits: ").append(cells.size()).append(" = <");
    for (Cell cell : cells) {
      sb.append(cell);
      sb.append("; ");
    }
    sb.append(">]");
    return sb.toString();
  }
Reads WALEdit from cells.
@param cellDecoder   Cell decoder.
@param expectedCount Expected cell count.
@return Number of KVs read.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALEdit.java