@serenity-is/corelib / Aggregators / Max
Class: Max
Defined in: src/slick/aggregators.ts:176
Maximum of a field.
Implements
Constructors
Constructor
new Max(
field):Max
Defined in: src/slick/aggregators.ts:184
Creates a new maximum aggregator.
Parameters
field
string
The field to aggregate.
Returns
Max
Properties
field
readonlyfield:string
Defined in: src/slick/aggregators.ts:184
The field to aggregate.
max
max:
any
Defined in: src/slick/aggregators.ts:178
Current maximum value.
aggregateKey
readonlystaticaggregateKey:"max"="max"
Defined in: src/slick/aggregators.ts:213
Key used to store/lookup this aggregator in totals.
summaryType
readonlystaticsummaryType:Max=SummaryType.Max
Defined in: src/slick/aggregators.ts:211
Summary type for this aggregator.
Accessors
displayName
Get Signature
get
staticdisplayName():string
Defined in: src/slick/aggregators.ts:215
Localized display name for this aggregator.
Returns
string
Methods
accumulate()
accumulate(
item):void
Defined in: src/slick/aggregators.ts:193
Accumulates a single item into the aggregator state.
Parameters
item
any
Row item to accumulate; numeric field values are compared against the current maximum.
Returns
void
Implementation of
init()
init():
void
Defined in: src/slick/aggregators.ts:188
Initializes state before a new group is processed.
Returns
void
Implementation of
storeResult()
storeResult(
groupTotals):void
Defined in: src/slick/aggregators.ts:203
Writes computed totals into the group totals object.
Parameters
groupTotals
any
Totals container to write the computed maximum into, keyed by field name.
Returns
void