@@ -3118,39 +3118,39 @@ public static Count count(String field) {
3118
3118
}
3119
3119
3120
3120
/**
3121
- * Creates an aggregation that counts the number of stage inputs that satisfy the provided filter
3122
- * condition.
3121
+ * Creates an aggregation that counts the total number of stage inputs.
3123
3122
*
3124
3123
* <p>Example:
3125
3124
*
3126
3125
* <pre>{@code
3127
- * // Count the number of completed orders
3128
- * Function.countIf(Field.of("status").eq("completed")). as("completedOrderCount ");
3126
+ * // Count the total number of users
3127
+ * Function.countAll(). as("totalUsers ");
3129
3128
* }</pre>
3130
3129
*
3131
- * @param condition The filter condition that needs to be met for the count to be incremented.
3132
- * @return A new {@code Accumulator} representing the 'countIf' aggregation.
3130
+ * @return A new {@code Accumulator} representing the 'countAll' aggregation.
3133
3131
*/
3134
3132
@ BetaApi
3135
- public static CountIf countIf ( FilterCondition condition ) {
3136
- return new CountIf ( condition , false );
3133
+ public static Count countAll ( ) {
3134
+ return new Count ( );
3137
3135
}
3138
3136
3139
3137
/**
3140
- * Creates an aggregation that counts the total number of stage inputs.
3138
+ * Creates an aggregation that counts the number of stage inputs that satisfy the provided filter
3139
+ * condition.
3141
3140
*
3142
3141
* <p>Example:
3143
3142
*
3144
3143
* <pre>{@code
3145
- * // Count the total number of users
3146
- * Function.countAll(). as("totalUsers ");
3144
+ * // Count the number of completed orders
3145
+ * Function.countIf(Field.of("status").eq("completed")). as("completedOrderCount ");
3147
3146
* }</pre>
3148
3147
*
3149
- * @return A new {@code Accumulator} representing the 'countAll' aggregation.
3148
+ * @param condition The filter condition that needs to be met for the count to be incremented.
3149
+ * @return A new {@code Accumulator} representing the 'countIf' aggregation.
3150
3150
*/
3151
3151
@ BetaApi
3152
- public static CountAll countAll ( ) {
3153
- return new CountAll ( );
3152
+ public static CountIf countIf ( FilterCondition condition ) {
3153
+ return new CountIf ( condition , false );
3154
3154
}
3155
3155
3156
3156
/**
0 commit comments