| org.mmbase.storage.search.AggregatedField
All known Subclasses: org.mmbase.storage.search.implementation.BasicAggregatedField,
AggregatedField | public interface AggregatedField extends StepField(Code) | | A field in an aggregated query.
Each field in a aggregated query has an aggregation type, which is one of
the values listed below.
This corresponds to an aggregated field in SQL SELECT-syntax.
author: Rob van Maris version: $Id: AggregatedField.java,v 1.4 2005/04/25 14:56:57 pierre Exp $ since: MMBase-1.7 |
Method Summary | |
public boolean | equals(Object obj) Compares this aggregated field to the specified object. | public int | getAggregationType() Gets the aggregation type. | public String | toString() Returns a string representation of this AggregatedField. |
AGGREGATION_TYPE_COUNT | final public static int AGGREGATION_TYPE_COUNT(Code) | | Aggregation type, resulting in count of non-null
values in this field.
|
AGGREGATION_TYPE_COUNT_DISTINCT | final public static int AGGREGATION_TYPE_COUNT_DISTINCT(Code) | | Aggregation type, resulting in count of distinct non-null
values in this field.
|
AGGREGATION_TYPE_GROUP_BY | final public static int AGGREGATION_TYPE_GROUP_BY(Code) | | Aggregation type, resulting in grouping the results on non-null
values of this field.
|
AGGREGATION_TYPE_MAX | final public static int AGGREGATION_TYPE_MAX(Code) | | Aggregation type, resulting in maximum value in this field.
|
AGGREGATION_TYPE_MIN | final public static int AGGREGATION_TYPE_MIN(Code) | | Aggregation type, resulting in minimum value in this field.
|
equals | public boolean equals(Object obj)(Code) | | Compares this aggregated field to the specified object. The result is
true if and only if the argument is a non-null
AggregatedField object associated with the same field,
using the same alias, and having the same aggregation type.
Parameters: obj - The object to compare with. true if the objects are equal,false otherwise. |
getAggregationType | public int getAggregationType()(Code) | | Gets the aggregation type.
|
toString | public String toString()(Code) | | Returns a string representation of this AggregatedField.
The string representation has the form
"AggregatedField(step:<step>, fieldname:<fieldname>,
alias:<alias>, aggregationtype:<aggregationtype>)"
where
A string representation of this AggregatedField. |
|
|