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 ) ; }
Creates the view for select all .