|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| Field Summary | |
static int |
AGGREGATION_TYPE_COUNT
Aggregation type, resulting in count of non-null values in this field. |
static int |
AGGREGATION_TYPE_COUNT_DISTINCT
Aggregation type, resulting in count of distinct non-null values in this field. |
static int |
AGGREGATION_TYPE_GROUP_BY
Aggregation type, resulting in grouping the results on non-null values of this field. |
static int |
AGGREGATION_TYPE_MAX
Aggregation type, resulting in maximum value in this field. |
static int |
AGGREGATION_TYPE_MIN
Aggregation type, resulting in minimum value in this field. |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this aggregated field to the specified object. |
int |
getAggregationType()
Gets the aggregation type. |
java.lang.String |
toString()
Returns a string representation of this AggregatedField. |
| Methods inherited from interface org.mmbase.storage.search.StepField |
getAlias, getFieldName, getStep, getType, hashCode |
| Field Detail |
public static final int AGGREGATION_TYPE_GROUP_BY
public static final int AGGREGATION_TYPE_COUNT
public static final int AGGREGATION_TYPE_COUNT_DISTINCT
public static final int AGGREGATION_TYPE_MIN
public static final int AGGREGATION_TYPE_MAX
| Method Detail |
public int getAggregationType()
public boolean equals(java.lang.Object obj)
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.
equals in interface StepFieldobj - The object to compare with.
true if the objects are equal,
false otherwise.public java.lang.String toString()
getStep().getAlias() or,
when the step alias is null, the step tablename
returned by getStep().getTableName().
getFieldName()
getAlias()
getAggregationType()
toString in interface StepField
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||