use of com.enonic.xp.aggregation.GeoDistanceRangeBucket in project xp by enonic.
the class GeoDistanceAggregationTest method verifyBucket.
private void verifyBucket(final Bucket bucket, final int count, final String key) {
assertTrue(bucket instanceof GeoDistanceRangeBucket);
final GeoDistanceRangeBucket buck = (GeoDistanceRangeBucket) bucket;
assertEquals(count, buck.getDocCount());
if (!isNullOrEmpty(key)) {
assertEquals(buck.getKey(), key);
}
}
Aggregations