Search in sources :

Example 1 with GeoDistanceRangeBucket

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);
    }
}
Also used : GeoDistanceRangeBucket(com.enonic.xp.aggregation.GeoDistanceRangeBucket)

Aggregations

GeoDistanceRangeBucket (com.enonic.xp.aggregation.GeoDistanceRangeBucket)1