public static void setTimestamp(Cell cell, long ts) throws IOException {
    if (cell instanceof ExtendedCell) {
      ((ExtendedCell) cell).setTimestamp(ts);
    } else {
      throw new IOException(
        new UnsupportedOperationException("Cell is not of type " + ExtendedCell.class.getName()));
    }
  }
Sets the given timestamp to the cell.
@throws IOException when the passed cell is not of type {@link ExtendedCell}
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java