while (iterator.hasNext()) {
CartesianGeoRecord geoRecord = iterator.next();
CartesianCoordinateDocId ccd = geoConverter.toCartesianCoordinateDocId(geoRecord);
if(minX <= ccd.x && ccd.x <= maxX && minY <= ccd.y && ccd.y <= maxY && minZ <= ccd.z && ccd.z <= maxZ && mindocid <= ccd.docid && ccd.docid <= maxdocid) {
GeRecordAndCartesianDocId both = new GeRecordAndCartesianDocId(geoRecord, ccd);
docs.add(ccd.docid, both);
}
}
return docs;