|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface AggregatedField
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 String[] |
AGGREGATION_TYPE_DESCRIPTIONS
Search type descriptions corresponding to the search type values: AGGREGATION_TYPE_GROUP_BY, AGGREGATION_TYPE_COUNT, AGGREGATION_TYPE_COUNT_DISTINCT,
AGGREGATION_TYPE_MIN, and AGGREGATION_TYPE_MAX |
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(Object obj)
Compares this aggregated field to the specified object. |
int |
getAggregationType()
Gets the aggregation type. |
String |
toString()
Returns a string representation of this AggregatedField. |
| Methods inherited from interface org.mmbase.storage.search.StepField |
|---|
getAlias, getFieldName, getStep, getType, hashCode, setUnmodifiable |
| Field Detail |
|---|
static final int AGGREGATION_TYPE_GROUP_BY
static final int AGGREGATION_TYPE_COUNT
static final int AGGREGATION_TYPE_COUNT_DISTINCT
static final int AGGREGATION_TYPE_MIN
static final int AGGREGATION_TYPE_MAX
static final String[] AGGREGATION_TYPE_DESCRIPTIONS
AGGREGATION_TYPE_GROUP_BY, AGGREGATION_TYPE_COUNT, AGGREGATION_TYPE_COUNT_DISTINCT,
AGGREGATION_TYPE_MIN, and AGGREGATION_TYPE_MAX
| Method Detail |
|---|
int getAggregationType()
boolean equals(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 StepFieldequals in class Objectobj - The object to compare with.
true if the objects are equal,
false otherwise.String toString()
getStep().getAlias() or,
when the step alias is null, the step tablename
returned by getStep().getTableName().
getFieldName()
getAlias()
getAggregationType()
toString in interface StepFieldtoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||