code: private void createView(Map<String, MapReduce> views, String columnName)
      {
          MapReduce mapr = new MapReduce();
          mapr.setMap("function(doc){if(doc." + columnName + "){emit(doc." + columnName + ", doc);}}");
          views.put(columnName, mapr);
      }
docs: Creates the view.
  
  @param views
  the views
  @param columnName
  the column name