K - key typepublic class MaximumMapMapper<K> extends MapMapper<K,java.lang.Number>
MapMapper where the data field is Numerical that the maximum is selected from.
As the key is a SQLValue rather than a SQLExpression we may have multiple SQL rows mapping to the
same key so numerical results may have to be combined.qualify, use_aliasconn| Constructor and Description |
|---|
MaximumMapMapper(AppContext c,
GroupingSQLValue<K> key,
java.lang.String key_name,
SQLExpression<? extends java.lang.Number> val,
java.lang.String value_name) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Number |
combine(java.lang.Number a,
java.lang.Number b)
If more than one database value maps to the same key we may have to
combine multiple results.
|
getNullKey, makeKey, makeResultmakeDefault, makeObjectaddAverage, addClause, addCount, addCount, addKey, addKeyList, addMaxDate, addMaxNumber, addMinDate, addMinNumber, addSQLAverage, addSQLCount, addSum, getModify, getModifyParameters, getRequiredFilter, getTarget, getTargetObject, getTargetParameters, setQualify, setUseAliasgetContext, getLogger, resetLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContextpublic MaximumMapMapper(AppContext c, GroupingSQLValue<K> key, java.lang.String key_name, SQLExpression<? extends java.lang.Number> val, java.lang.String value_name) throws InvalidKeyException
InvalidKeyExceptionprotected java.lang.Number combine(java.lang.Number a,
java.lang.Number b)
GeneralMapMapperCombineException
if the first parameter is non-null.combine in class GeneralMapMapper<K,java.lang.Number>a - previous valueb - new value