// TODO: Condition on checkNum allows for full query on initial search. Possible to limit final // set? Important? private void callDao( String query, String searchType, int index, int userId, String category, int radius) { DbDao db = new DbDao(); ros = null; ros = db.search(query, searchType, index, userId, category, radius, location); if (ros != null) { if (this.indexPage == this.pageNum) { numPages = ros.length % 10 == 0 ? ros.length / 10 : (ros.length / 10) + 1; /** * ResultObject[] tempIndexSetArray = null; if(ros.length<50){ tempIndexSetArray = new * ResultObject[ros.length]; System.arraycopy(ros,index*10, tempIndexSetArray, 0, * ros.length); }else{ tempIndexSetArray= new ResultObject[50]; * System.arraycopy(ros,index*10, tempIndexSetArray, 0, 50); } ros = tempIndexSetArray;* */ } if (ros.length < 50) { smallSet = true; } else { smallSet = false; } } }