private static boolean deleteRowsImpl(Iterator<Row> iter) throws IOException {
  boolean removed=false;
  while (iter.hasNext()) {
    iter.next();
    iter.remove();
    removed=true;
  }
  return removed;
}

private static boolean deleteRowsImpl ( Iterator < Row > iter ) throws IOException { boolean removed = false ; while ( iter . hasNext ( ) ) { iter . next ( ) ; iter . remove ( ) ; removed = true ; } return removed ; }
deletes all the rows and returns whether or not any " to " " rows were deleted .
