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

org.vertexium.query.CalendarFieldAggregation 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;
import java.util.TimeZone;

public class CalendarFieldAggregation extends Aggregation implements SupportsNestedAggregationsAggregation {
    public static final Class RESULT_CLASS = HistogramResult.class;
    private final String aggregationName;
    private final String propertyName;
    private final Long minDocumentCount;
    private final List nestedAggregations = new ArrayList<>();
    private final TimeZone timeZone;
    private final int calendarField;

    public CalendarFieldAggregation(
        String aggregationName,
        String propertyName,
        Long minDocumentCount,
        TimeZone timeZone,
        int calendarField
    ) {
        this.aggregationName = aggregationName;
        this.propertyName = propertyName;
        this.minDocumentCount = minDocumentCount;
        this.timeZone = timeZone;
        this.calendarField = calendarField;
    }

    public String getAggregationName() {
        return aggregationName;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public Long getMinDocumentCount() {
        return minDocumentCount;
    }

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

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

    public TimeZone getTimeZone() {
        return timeZone;
    }

    public int getCalendarField() {
        return calendarField;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy