Interface for user defined aggregate window functions.
More...
#include <wxsqlite3.h>
Interface for user defined aggregate window functions.
◆ WindowFunction()
| wxSQLite3::WindowFunction::WindowFunction |
( |
| ) |
|
|
inline |
◆ ~WindowFunction()
| virtual wxSQLite3::WindowFunction::~WindowFunction |
( |
| ) |
|
|
inlinevirtual |
◆ Aggregate()
Execute the aggregate of the window function.
This method is invoked for each row of the result set of the query using the aggregate window function.
- Parameters
-
| ctx | function context which can be used to access arguments and result value |
◆ CurrentValue()
| virtual void wxSQLite3::WindowFunction::CurrentValue |
( |
FunctionContext & | ctx | ) |
|
|
pure virtual |
Get current value of the aggregate window function.
This method is invoked to return the current value of the aggregate. Unlike Finalize, the implementation should not delete any context.
- Parameters
-
| ctx | function context which can be used to access arguments and result value |
◆ DecrementCount()
| void wxSQLite3::WindowFunction::DecrementCount |
( |
| ) |
|
|
inline |
◆ Finalize()
Prepare the result of the aggregate window function.
This method is invoked after all rows of the result set of the query using the aggregate window function have been processed. Usually the final result is calculated and returned in this method.
- Parameters
-
| ctx | function context which can be used to access arguments and result value |
◆ GetCount()
| int wxSQLite3::WindowFunction::GetCount |
( |
| ) |
const |
|
inline |
◆ IncrementCount()
| void wxSQLite3::WindowFunction::IncrementCount |
( |
| ) |
|
|
inline |
◆ Reverse()
Reverse an aggregate step of the window function.
This method is invoked to remove a row from the current window. The function arguments, if any, correspond to the row being removed.
- Parameters
-
| ctx | function context which can be used to access arguments and result value |
The documentation for this class was generated from the following file: