private BasicQuery getQuery(
final Map<StatisticsId, InternalDataStatistics<SimpleFeature, ?, ?>> statsMap,
final Geometry jtsBounds,
final TemporalConstraintsSet timeBounds) {
final Constraints timeConstraints =
QueryIndexHelper.composeTimeBoundedConstraints(
components.getAdapter().getFeatureType(),
components.getAdapter().getTimeDescriptors(),
statsMap,
timeBounds);
final GeoConstraintsWrapper geoConstraints =
QueryIndexHelper.composeGeometricConstraints(getFeatureType(), statsMap, jtsBounds);
final BasicQuery query = composeQuery(geoConstraints, timeConstraints);
query.setExact(timeBounds.isExact());
return query;
}