Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 987 Bytes

CountCalculator.md

File metadata and controls

59 lines (38 loc) · 987 Bytes

CountCalculator Class

CountCalculator is a concrete implementation of IAggregateCalculator that calculates the count of records.

Since

3/23/2024

Author Zackary Frazier

Implements

IAggregateCalculator

Constructors

CountCalculator(options)

Constructor for CountCalculator

Signature

public CountCalculator(AggregateCalculatorOptions options)

Parameters

Name Type Description
options AggregateCalculatorOptions

Methods

calculate()

Calculates the count of records

Signature

public ProtoAggregate calculate()

Return Type

ProtoAggregate

,[object Object]


calculateForField()

Returns the count of records for the aggregateResult passed into options

Signature

public Object calculateForField()

Return Type

Object

,[object Object]