Aggregation classes
Aggregation classes.
Average
¶
Aggregation class for calculating the average value.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
precision
|
str
|
The accuracy of rounding. |
'.00'
|
rounding
|
str
|
Rounding mode. |
ROUND_HALF_EVEN
|
Source code in src\scruby\aggregation.py
Counter
¶
Aggregation class for calculating the number of documents.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
limit
|
int
|
The maximum counter value. |
1000
|
Source code in src\scruby\aggregation.py
check()
¶
Check the condition of the counter.
Returns:
Type | Description |
---|---|
bool
|
Boolean value. If |
Max
¶
Aggregation class for calculating the maximum value.
Source code in src\scruby\aggregation.py
Min
¶
Aggregation class for calculating the minimum value.
Source code in src\scruby\aggregation.py
Sum
¶
Aggregation class for calculating sum of values.