|
62 | 62 | import com.influxdb.query.dsl.functions.MaxFlux; |
63 | 63 | import com.influxdb.query.dsl.functions.MeanFlux; |
64 | 64 | import com.influxdb.query.dsl.functions.MinFlux; |
65 | | -import com.influxdb.query.dsl.functions.PercentileFlux; |
66 | 65 | import com.influxdb.query.dsl.functions.PivotFlux; |
| 66 | +import com.influxdb.query.dsl.functions.QuantileFlux; |
67 | 67 | import com.influxdb.query.dsl.functions.RangeFlux; |
68 | 68 | import com.influxdb.query.dsl.functions.ReduceFlux; |
69 | 69 | import com.influxdb.query.dsl.functions.RenameFlux; |
|
122 | 122 | * <li>{@link MaxFlux}</li> |
123 | 123 | * <li>{@link MeanFlux}</li> |
124 | 124 | * <li>{@link MinFlux}</li> |
125 | | - * <li>{@link PercentileFlux}</li> |
| 125 | + * <li>{@link QuantileFlux}</li> |
126 | 126 | * <li>{@link PivotFlux}</li> |
127 | 127 | * <li>{@link RangeFlux}</li> |
128 | 128 | * <li>{@link RenameFlux}</li> |
@@ -1214,118 +1214,95 @@ public final MinFlux min(@Nonnull final String column) { |
1214 | 1214 | } |
1215 | 1215 |
|
1216 | 1216 | /** |
1217 | | - * Percentile is both an aggregate operation and a selector operation depending on selected options. |
| 1217 | + * Quantile is both an aggregate operation and a selector operation depending on selected options. |
1218 | 1218 | * |
1219 | 1219 | * <h3>The parameters had to be defined by:</h3> |
1220 | 1220 | * <ul> |
1221 | | - * <li>{@link PercentileFlux#withColumns(String[])}</li> |
1222 | | - * <li>{@link PercentileFlux#withColumns(Collection)}</li> |
1223 | | - * <li>{@link PercentileFlux#withPercentile(Float)}</li> |
1224 | | - * <li>{@link PercentileFlux#withCompression(Float)}</li> |
1225 | | - * <li>{@link PercentileFlux#withMethod(String)}</li> |
1226 | | - * <li>{@link PercentileFlux#withMethod(PercentileFlux.MethodType)}</li> |
1227 | | - * <li>{@link PercentileFlux#withPropertyNamed(String)}</li> |
1228 | | - * <li>{@link PercentileFlux#withPropertyNamed(String, String)}</li> |
1229 | | - * <li>{@link PercentileFlux#withPropertyValueEscaped(String, String)}</li> |
1230 | | - * <li>{@link PercentileFlux#withFunction(String, Object)}</li> |
1231 | | - * <li>{@link PercentileFlux#withFunctionNamed(String, String)}</li> |
| 1221 | + * <li>{@link QuantileFlux#withColumn(String)}</li> |
| 1222 | + * <li>{@link QuantileFlux#withQuantile(Float)}</li> |
| 1223 | + * <li>{@link QuantileFlux#withCompression(Float)}</li> |
| 1224 | + * <li>{@link QuantileFlux#withMethod(String)}</li> |
| 1225 | + * <li>{@link QuantileFlux#withMethod(QuantileFlux.MethodType)}</li> |
| 1226 | + * <li>{@link QuantileFlux#withPropertyNamed(String)}</li> |
| 1227 | + * <li>{@link QuantileFlux#withPropertyNamed(String, String)}</li> |
| 1228 | + * <li>{@link QuantileFlux#withPropertyValueEscaped(String, String)}</li> |
| 1229 | + * <li>{@link QuantileFlux#withFunction(String, Object)}</li> |
| 1230 | + * <li>{@link QuantileFlux#withFunctionNamed(String, String)}</li> |
1232 | 1231 | * </ul> |
1233 | 1232 | * |
1234 | | - * @return {@link PivotFlux} |
| 1233 | + * @return {@link QuantileFlux} |
1235 | 1234 | */ |
1236 | 1235 | @Nonnull |
1237 | | - public final PercentileFlux percentile() { |
1238 | | - return new PercentileFlux(this); |
| 1236 | + public final QuantileFlux quantile() { |
| 1237 | + return new QuantileFlux(this); |
1239 | 1238 | } |
1240 | 1239 |
|
1241 | 1240 | /** |
1242 | | - * Percentile is both an aggregate operation and a selector operation depending on selected options. |
| 1241 | + * Quantile is both an aggregate operation and a selector operation depending on selected options. |
1243 | 1242 | * |
1244 | | - * @param percentile value between 0 and 1 indicating the desired percentile |
1245 | | - * @return {@link PivotFlux} |
| 1243 | + * @param quantile value between 0 and 1 indicating the desired quantile |
| 1244 | + * @return {@link QuantileFlux} |
1246 | 1245 | */ |
1247 | 1246 | @Nonnull |
1248 | | - public final PercentileFlux percentile(@Nonnull final Float percentile) { |
| 1247 | + public final QuantileFlux quantile(@Nonnull final Float quantile) { |
1249 | 1248 |
|
1250 | | - return new PercentileFlux(this) |
1251 | | - .withPercentile(percentile); |
| 1249 | + return new QuantileFlux(this) |
| 1250 | + .withQuantile(quantile); |
1252 | 1251 | } |
1253 | 1252 |
|
1254 | 1253 | /** |
1255 | | - * Percentile is both an aggregate operation and a selector operation depending on selected options. |
| 1254 | + * Quantile is both an aggregate operation and a selector operation depending on selected options. |
1256 | 1255 | * |
1257 | | - * @param percentile value between 0 and 1 indicating the desired percentile |
1258 | | - * @param method method to aggregate |
1259 | | - * @return {@link PivotFlux} |
| 1256 | + * @param quantile value between 0 and 1 indicating the desired quantile |
| 1257 | + * @param method method to aggregate |
| 1258 | + * @return {@link QuantileFlux} |
1260 | 1259 | */ |
1261 | 1260 | @Nonnull |
1262 | | - public final PercentileFlux percentile(@Nonnull final Float percentile, |
1263 | | - @Nonnull final PercentileFlux.MethodType method) { |
| 1261 | + public final QuantileFlux quantile(@Nonnull final Float quantile, |
| 1262 | + @Nonnull final QuantileFlux.MethodType method) { |
1264 | 1263 |
|
1265 | | - return new PercentileFlux(this) |
1266 | | - .withPercentile(percentile) |
| 1264 | + return new QuantileFlux(this) |
| 1265 | + .withQuantile(quantile) |
1267 | 1266 | .withMethod(method); |
1268 | 1267 | } |
1269 | 1268 |
|
1270 | 1269 | /** |
1271 | | - * Percentile is both an aggregate operation and a selector operation depending on selected options. |
| 1270 | + * Quantile is both an aggregate operation and a selector operation depending on selected options. |
1272 | 1271 | * |
1273 | | - * @param percentile value between 0 and 1 indicating the desired percentile |
| 1272 | + * @param quantile value between 0 and 1 indicating the desired quantile |
1274 | 1273 | * @param method method to aggregate |
1275 | 1274 | * @param compression indicates how many centroids to use when compressing the dataset |
1276 | | - * @return {@link PivotFlux} |
| 1275 | + * @return {@link QuantileFlux} |
1277 | 1276 | */ |
1278 | 1277 | @Nonnull |
1279 | | - public final PercentileFlux percentile(@Nonnull final Float percentile, |
1280 | | - @Nonnull final PercentileFlux.MethodType method, |
1281 | | - @Nonnull final Float compression) { |
| 1278 | + public final QuantileFlux quantile(@Nonnull final Float quantile, |
| 1279 | + @Nonnull final QuantileFlux.MethodType method, |
| 1280 | + @Nonnull final Float compression) { |
1282 | 1281 |
|
1283 | | - return new PercentileFlux(this) |
1284 | | - .withPercentile(percentile) |
| 1282 | + return new QuantileFlux(this) |
| 1283 | + .withQuantile(quantile) |
1285 | 1284 | .withMethod(method) |
1286 | 1285 | .withCompression(compression); |
1287 | 1286 | } |
1288 | 1287 |
|
1289 | 1288 | /** |
1290 | | - * Percentile is both an aggregate operation and a selector operation depending on selected options. |
| 1289 | + * Quantile is both an aggregate operation and a selector operation depending on selected options. |
1291 | 1290 | * |
1292 | | - * @param columns specifies a list of columns to aggregate |
1293 | | - * @param percentile value between 0 and 1 indicating the desired percentile |
| 1291 | + * @param column specifies a column to aggregate |
| 1292 | + * @param quantile value between 0 and 1 indicating the desired quantile |
1294 | 1293 | * @param method method to aggregate |
1295 | 1294 | * @param compression indicates how many centroids to use when compressing the dataset. |
1296 | | - * @return {@link PivotFlux} |
| 1295 | + * @return {@link QuantileFlux} |
1297 | 1296 | */ |
1298 | 1297 | @Nonnull |
1299 | | - public final PercentileFlux percentile(@Nonnull final String[] columns, |
1300 | | - @Nonnull final Float percentile, |
1301 | | - @Nonnull final PercentileFlux.MethodType method, |
1302 | | - @Nonnull final Float compression) { |
1303 | | - |
1304 | | - return new PercentileFlux(this) |
1305 | | - .withColumns(columns) |
1306 | | - .withPercentile(percentile) |
1307 | | - .withMethod(method) |
1308 | | - .withCompression(compression); |
1309 | | - } |
| 1298 | + public final QuantileFlux quantile(@Nonnull final String column, |
| 1299 | + @Nonnull final Float quantile, |
| 1300 | + @Nonnull final QuantileFlux.MethodType method, |
| 1301 | + @Nonnull final Float compression) { |
1310 | 1302 |
|
1311 | | - /** |
1312 | | - * Percentile is both an aggregate operation and a selector operation depending on selected options. |
1313 | | - * |
1314 | | - * @param columns specifies a list of columns to aggregate |
1315 | | - * @param percentile value between 0 and 1 indicating the desired percentile |
1316 | | - * @param method method to aggregate |
1317 | | - * @param compression indicates how many centroids to use when compressing the dataset. |
1318 | | - * @return {@link PivotFlux} |
1319 | | - */ |
1320 | | - @Nonnull |
1321 | | - public final PercentileFlux percentile(@Nonnull final Collection<String> columns, |
1322 | | - @Nonnull final Float percentile, |
1323 | | - @Nonnull final PercentileFlux.MethodType method, |
1324 | | - @Nonnull final Float compression) { |
1325 | | - |
1326 | | - return new PercentileFlux(this) |
1327 | | - .withColumns(columns) |
1328 | | - .withPercentile(percentile) |
| 1303 | + return new QuantileFlux(this) |
| 1304 | + .withColumn(column) |
| 1305 | + .withQuantile(quantile) |
1329 | 1306 | .withMethod(method) |
1330 | 1307 | .withCompression(compression); |
1331 | 1308 | } |
|
0 commit comments