org.vertexium.query.RangeResult Maven / Gradle / Ivy
package org.vertexium.query;
public class RangeResult extends AggregationResult {
private final Iterable buckets;
public RangeResult(Iterable buckets) {
this.buckets = buckets;
}
public Iterable getBuckets() {
return buckets;
}
public RangeBucket getBucketByKey(Object key) {
String keyStr = key.toString();
for (RangeBucket rangeBucket : getBuckets()) {
String bucketKey = rangeBucket.getKey().toString();
if (bucketKey.equals(keyStr)) {
return rangeBucket;
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy