ViewRow r = itr.next();
if(view instanceof SpatialView) {
rows.add(new SpatialViewRowWithDocs(r.getId(), r.getBbox(),
r.getGeometry(), r.getValue(), docMap.get(r.getId())));
} else {
rows.add(new ViewRowWithDocs(r.getId(), r.getKey(), r.getValue(),
docMap.get(r.getId())));
}
}
return new ViewResponseWithDocs(rows, viewResp.getErrors(),
viewResp.getTotalRows());