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

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

There is a newer version: 4.10.0
Show newest version
package org.vertexium.query;

import java.util.ArrayList;
import java.util.List;

public class GeohashAggregation extends Aggregation implements SupportsNestedAggregationsAggregation {
    private final String aggregationName;
    private final String fieldName;
    private final int precision;
    private final List nestedAggregations = new ArrayList<>();

    public GeohashAggregation(String aggregationName, String fieldName, int precision) {
        this.aggregationName = aggregationName;
        this.fieldName = fieldName;
        this.precision = precision;
    }

    public String getAggregationName() {
        return aggregationName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public int getPrecision() {
        return precision;
    }

    @Override
    public void addNestedAggregation(Aggregation nestedAggregation) {
        this.nestedAggregations.add(nestedAggregation);
    }

    @Override
    public Iterable getNestedAggregations() {
        return nestedAggregations;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy