org.vertexium.query.GeohashResult Maven / Gradle / Ivy
package org.vertexium.query;
public class GeohashResult extends AggregationResult {
private final Iterable buckets;
public GeohashResult(Iterable buckets) {
this.buckets = buckets;
}
public Iterable getBuckets() {
return buckets;
}
public long getMaxCount() {
long max = Long.MIN_VALUE;
for (GeohashBucket b : getBuckets()) {
max = Math.max(max, b.getCount());
}
return max;
}
}