Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 987 Bytes

MaxCalculator.md

File metadata and controls

60 lines (39 loc) · 987 Bytes

MaxCalculator Class

calculates the MAX value of a field for an aggregate result

Since

3/23/2024

Author Zackary Frazier

Implements

IAggregateCalculator

Constructors

MaxCalculator(options)

Constructor

Signature

public MaxCalculator(AggregateCalculatorOptions options)

Parameters

Name Type Description
options AggregateCalculatorOptions

Methods

calculate()

calculates the MAX value of a field for an aggregate result

Signature

public ProtoAggregate calculate()

Return Type

ProtoAggregate

,[object Object]


calculateForField()

Return the max of the field passed in as alias in options, for the records passed in as aggregateResult of options

Signature

public Object calculateForField()

Return Type

Object

,[object Object]