All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----JBMSTours.aggregates.MaxButOneDef
Defines the aggregators for an aggregate (MaxButONE). This aggregate returns the runnner up value for the column (not the max, but the value right after that). If the column only contains 0 or 1 rows, it returns a NULL.
You may need to use DISTINCT in conjunction with the aggregate.
As implemented, works only for INTs and DOUBLE PRECISIONs.
We implement Externalizable to save space in case we are written out.
public MaxButOneDef()
public TypeDescriptor getAggregator(TypeDescriptor inputType, StringBuffer aggregatorClassName)
All Packages Class Hierarchy This Package Previous Next Index