|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicStepField
org.mmbase.storage.search.implementation.BasicAggregatedField
Basic implementation. The step alias is equal to the field name, unless it is explicitly set.
| Field Summary |
| Fields inherited from interface org.mmbase.storage.search.AggregatedField |
AGGREGATION_TYPE_COUNT, AGGREGATION_TYPE_COUNT_DISTINCT, AGGREGATION_TYPE_DESCRIPTIONS, AGGREGATION_TYPE_GROUP_BY, AGGREGATION_TYPE_MAX, AGGREGATION_TYPE_MIN |
| Constructor Summary | |
BasicAggregatedField(Step step,
CoreField fieldDefs,
int aggregationType)
Constructor. |
|
| Method Summary | |
boolean |
equals(Object obj)
Compares this aggregated field to the specified object. |
int |
getAggregationType()
Gets the aggregation type. |
String |
getAggregationTypeDescription()
Gets the aggregation type. |
int |
hashCode()
|
BasicAggregatedField |
setAggregationType(int aggregationType)
Sets the aggregation type. |
String |
toString()
Returns a string representation of this AggregatedField. |
| Methods inherited from class org.mmbase.storage.search.implementation.BasicStepField |
getAlias, getField, getFieldName, getFieldName, getStep, getType, setAlias |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.StepField |
getAlias, getFieldName, getStep, getType |
| Constructor Detail |
public BasicAggregatedField(Step step,
CoreField fieldDefs,
int aggregationType)
step - The associated step.fieldDefs - The associated fieldDefs.aggregationType - The aggregation type.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
public BasicAggregatedField setAggregationType(int aggregationType)
aggregationType - The aggregation type.
BasicAggregatedField instance.
IllegalArgumentException - when an invalid argument is supplied.public int getAggregationType()
getAggregationType in interface AggregatedFieldpublic String getAggregationTypeDescription()
public boolean equals(Object obj)
AggregatedFieldtrue 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 AggregatedFieldequals in class BasicStepFieldpublic int hashCode()
hashCode in interface StepFieldhashCode in class BasicStepFieldpublic String toString()
AggregatedFieldgetStep().getAlias() or,
when the step alias is null, the step tablename
returned by getStep().getTableName().
getFieldName()
getAlias()
getAggregationType()
toString in interface AggregatedFieldtoString in class BasicStepField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||