K
- key typepublic class MinimumMapMapper<K> extends MapMapper<K,java.lang.Number>
MapMapper
where the data field is Numerical that the minimum 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_alias
conn
Constructor and Description |
---|
MinimumMapMapper(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, makeResult
makeDefault, makeObject
addAverage, addClause, addCount, addCount, addKey, addKeyList, addMaxDate, addMaxNumber, addMinDate, addMinNumber, addSQLAverage, addSQLCount, addSum, getModify, getModifyParameters, getRequiredFilter, getTarget, getTargetObject, getTargetParameters, setQualify, setUseAlias
getContext, getLogger, resetLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
public MinimumMapMapper(AppContext c, GroupingSQLValue<K> key, java.lang.String key_name, SQLExpression<? extends java.lang.Number> val, java.lang.String value_name) throws InvalidKeyException
InvalidKeyException
protected java.lang.Number combine(java.lang.Number a, java.lang.Number b)
GeneralMapMapper
CombineException
if the first parameter is non-null.combine
in class GeneralMapMapper<K,java.lang.Number>
a
- previous valueb
- new value