public interface AggregatedField extends StepField
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.
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAlias, getFieldName, getStep, getType, hashCode, setUnmodifiablestatic 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_MAXint 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.String toString()
getStep().getAlias() or,
when the step alias is null, the step tablename
returned by getStep().getTableName().
getFieldName()
getAlias()
getAggregationType()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}