private void createViewForSelectSpecificFields ( Map < String , MapReduce > views ) { if ( views . get ( CouchDBConstants . FIELDS ) == null ) { MapReduce mapr = new MapReduce ( ) ; mapr . setMap ( "function(doc){for(field in doc){emit(field, doc[field]);}}" ) ; views . put ( CouchDBConstants . FIELDS , mapr ) ; } }
Creates the view for select specific fields .