Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TAggregateCount

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Internally used class for count aggregate functions

Declaration

Source position: fpexprpars.pp line 696

type TAggregateCount = class(TAggregateExpr)

public

  procedure InitAggregate; override;

  

Initialize count aggregation

  procedure UpdateAggregate; override;

  

Update count aggregate with new value

end;

Inheritance

TAggregateCount

  

Internally used class for count aggregate functions

|

TAggregateExpr

  

Internally used Base class for aggregate expressions

|

TFPExprFunction

  

Internally used class for representing function calls in expression trees

|

TFPExprIdentifierNode

  

Internally used class for identifier nodes in expression trees

|

TFPExprNode

  

Class for representing nodes in expression trees

|

TObject

Description

The TAggregateCount class implements the count aggregate function, which counts the number of values processed during aggregation. It extends TAggregateExpr to provide count-specific aggregation logic.

Unlike other aggregate functions that process the actual values, the count function simply increments a counter for each value encountered, regardless of the value's content or type. This makes it useful for determining the number of records or values in a dataset.

The count function always returns an integer result representing the total number of values processed during the aggregation cycle.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025