code: private void createViewForSelectAll(TableInfo tableInfo, Map<String, MapReduce> views)
      {
          MapReduce mapr = new MapReduce();
          mapr.setMap("function(doc){if(doc." + tableInfo.getIdColumnName() + "){emit(null, doc);}}");
          views.put("all", mapr);
      }
docs: Creates the view for select all.
  
  @param tableInfo
  the table info
  @param views
  the views