org.mmbase.storage.search
Interface AggregatedField

Package class diagram package AggregatedField
All Superinterfaces:
StepField
All Known Implementing Classes:
BasicAggregatedField

public interface AggregatedField
extends StepField

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.

Since:
MMBase-1.7
Version:
$Id: AggregatedField.java 41186 2010-02-26 17:54:31Z michiel $
Author:
Rob van Maris

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

AGGREGATION_TYPE_GROUP_BY

static final int AGGREGATION_TYPE_GROUP_BY
Aggregation type, resulting in grouping the results on non-null values of this field.

See Also:
Constant Field Values

AGGREGATION_TYPE_COUNT

static final int AGGREGATION_TYPE_COUNT
Aggregation type, resulting in count of non-null values in this field.

See Also:
Constant Field Values

AGGREGATION_TYPE_COUNT_DISTINCT

static final int AGGREGATION_TYPE_COUNT_DISTINCT
Aggregation type, resulting in count of distinct non-null values in this field.

See Also:
Constant Field Values

AGGREGATION_TYPE_MIN

static final int AGGREGATION_TYPE_MIN
Aggregation type, resulting in minimum value in this field.

See Also:
Constant Field Values

AGGREGATION_TYPE_MAX

static final int AGGREGATION_TYPE_MAX
Aggregation type, resulting in maximum value in this field.

See Also:
Constant Field Values

AGGREGATION_TYPE_DESCRIPTIONS

static final 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

Method Detail

getAggregationType

int getAggregationType()
Gets the aggregation type.


equals

boolean equals(Object obj)
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.

Specified by:
equals in interface StepField
Overrides:
equals in class Object
Parameters:
obj - The object to compare with.
Returns:
true if the objects are equal, false otherwise.

toString

String toString()
Returns a string representation of this AggregatedField. The string representation has the form "AggregatedField(step:<step>, fieldname:<fieldname>, alias:<alias>, aggregationtype:<aggregationtype>)" where

Specified by:
toString in interface StepField
Overrides:
toString in class Object
Returns:
A string representation of this AggregatedField.


MMBase2 Bridge 2.0-SNAPSHOT - 2013-05-29T22:05