code: private void createViewForMax(Map<String, MapReduce> views)
      {
          if (views.get(CouchDBConstants.MAX) == null)
          {
              MapReduce mapr = new MapReduce();
              mapr.setMap("function(doc){for(field in doc){var o = doc[field];if(typeof(o)==\"number\")emit(field+\"_\"+doc."
                      + CouchDBConstants.ENTITYNAME + ", o);}}");
              mapr.setReduce("function(keys, values){return Math.max.apply(Math, values);}");
              views.put(CouchDBConstants.MAX, mapr);
          }
      }
docs: Creates the view for max.
  
  @param views
  the views