We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f55dc9 commit 836d0d0Copy full SHA for 836d0d0
src/main/java/org/apache/skywalking/banyandb/v1/client/TopNQuery.java
@@ -34,6 +34,7 @@ public class TopNQuery {
34
private final int number;
35
private final AbstractQuery.Sort sort;
36
private MeasureQuery.Aggregation.Type aggregationType = MeasureQuery.Aggregation.Type.UNSPECIFIED;
37
+ private List<String> stages;
38
/**
39
* Query conditions.
40
*/
@@ -69,6 +70,11 @@ BanyandbMeasure.TopNRequest build() throws BanyanDBException {
69
70
bld.addConditions(expr.build().getCondition());
71
}
72
73
+ if (stages != null && !stages.isEmpty()) {
74
+ for (String stage : stages) {
75
+ bld.addStages(stage);
76
+ }
77
78
return bld.build();
79
80
0 commit comments