public Search counts ( String [ ] countsfields ) { assert ( countsfields . length > 0 ) ; JsonArray countsJsonArray = new JsonArray ( ) ; for ( String countsfield : countsfields ) { JsonPrimitive element = new JsonPrimitive ( countsfield ) ; countsJsonArray . add ( element ) ; } databaseHelper . query ( "counts" , countsJsonArray ) ; return this ; }
Array of fieldNames for which counts should be produced