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

TAggregateMax

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

Internally used class for maximum aggregate functions

Declaration

Source position: fpexprpars.pp line 666

type TAggregateMax = class(TAggregateExpr)

public

  procedure InitAggregate; override;

  

Initialize maximum aggregation

  procedure UpdateAggregate; override;

  

Update maximum aggregate with new value

end;

Inheritance

TAggregateMax

  

Internally used class for maximum 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 TAggregateMax class implements the maximum aggregate function, which finds the largest value among all processed values. It extends TAggregateExpr to provide maximum-specific aggregation logic.

The class maintains an internal state that tracks the maximum value encountered so far during the aggregation process. The first value encountered is used as the initial maximum, and subsequent values are compared to update the maximum when larger values are found.

The maximum function works with numeric types (integers, floats, currency) and can also compare string and date/time values using appropriate comparison logic for each data type.

See also

TFPExprNode

  

Class for representing nodes in expression trees


Documentation generated on: Dec 15 2025