public ResultSet map(ResultSet resultSet){
  List<Result> newResults=new ArrayList<>();
  Result newResult;
  for (  Result r : resultSet) {
    newResult=map(r,resultSet.getSchema());
    if (newResult != null) {
      newResults.add(newResult);
    }
  }
  Schema newSchema=map(resultSet.getSchema());
  ResultSet newResultSet=new ResultSet(newResults,newSchema);
  LOG.trace("Mapped resultSet: {} to new resultSet {}",resultSet,newResultSet);
  return newResultSet;
}

public ResultSet map ( ResultSet resultSet ) { List < Result > newResults = new ArrayList < > ( ) ; Result newResult ; for ( Result r : resultSet ) { newResult = map ( r , resultSet . getSchema ( ) ) ; if ( newResult != null ) { newResults . add ( newResult ) ; } } Schema newSchema = map ( resultSet . getSchema ( ) ) ; ResultSet newResultSet = new ResultSet ( newResults , newSchema ) ; LOG . trace ( "Mapped resultSet: {} to new resultSet {}" , resultSet , newResultSet ) ; return newResultSet ; }
take a complete result set and replace it with one altered according to the rules of the concrete mapper .
