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

com.enonic.xp.query.aggregation.MetricAggregationQuery Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.query.aggregation;

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public abstract class MetricAggregationQuery
    extends AggregationQuery
{
    private final String fieldName;

    public MetricAggregationQuery( final Builder builder )
    {
        super( builder );
        this.fieldName = builder.fieldName;
    }

    public String getFieldName()
    {
        return fieldName;
    }

    public static class Builder
        extends AggregationQuery.Builder
    {
        private String fieldName;

        public Builder( final String name )
        {
            super( name );
        }

        @SuppressWarnings("unchecked")
        public T fieldName( final String fieldName )
        {
            this.fieldName = fieldName;
            return (T) this;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy