public class BasicAggregatedField extends BasicStepField implements AggregatedField
modifiableAGGREGATION_TYPE_COUNT, AGGREGATION_TYPE_COUNT_DISTINCT, AGGREGATION_TYPE_DESCRIPTIONS, AGGREGATION_TYPE_GROUP_BY, AGGREGATION_TYPE_MAX, AGGREGATION_TYPE_MIN| Constructor and Description |
|---|
BasicAggregatedField(Step step,
Field fieldDefs,
int aggregationType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this stepfield 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 StepField.
|
compareSteps, equalFieldValues, getAlias, getByteSize, getByteSize, getField, getFieldName, getFieldName, getStep, getType, setAlias, setUnmodifiable, testValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAlias, getFieldName, getStep, getType, setUnmodifiablepublic BasicAggregatedField(Step step, Field fieldDefs, int aggregationType)
step - The associated step.fieldDefs - The associated fieldDefs.aggregationType - The aggregation type.IllegalArgumentException - when an invalid argument is supplied.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)
StepFieldtrue if and only if the argument is a non-null
StepField object associated with the same field, using the same alias.equals in interface AggregatedFieldequals in interface StepFieldequals in class BasicStepFieldobj - The object to compare with.true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface StepFieldhashCode in class BasicStepFieldpublic String toString()
StepFieldgetStep().getAlias() or,
when the step alias is null, the step tablename
returned by getStep().getTableName().
getFieldName()
getAlias()
toString in interface AggregatedFieldtoString in interface StepFieldtoString in class BasicStepFieldMMBase 1.9-SNAPSHOT - ${javadoctimestamp}