All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.query.GeohashResult Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy