Tag market support queryTagValue for value distribution info (#794)

This commit is contained in:
daikon
2024-03-06 20:46:59 +08:00
committed by GitHub
parent 3cccac58a1
commit a6428f7dbf
12 changed files with 249 additions and 19 deletions

View File

@@ -35,6 +35,12 @@ public class Aggregator {
this.args = args;
}
public Aggregator(String column, AggOperatorEnum func, String alias) {
this.column = column;
this.func = func;
this.alias = alias;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("{");
@@ -46,6 +52,8 @@ public class Aggregator {
.append(nameCh).append('\"');
sb.append(",\"args\":")
.append(args);
sb.append(",\"alias\":")
.append(alias);
sb.append('}');
return sb.toString();
}