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;
}
}
}