mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 04:57:28 +00:00
[improvement] supersonic adapt checkstyle (#451)
This commit is contained in:
@@ -29,5 +29,4 @@ public enum OperatorEnum {
|
||||
return operator;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -31,5 +31,4 @@ public enum QueryTypeBackEnum {
|
||||
return state;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -25,5 +25,4 @@ public enum QueryTypeEnum {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -55,8 +55,6 @@ public class Dim {
|
||||
this.bizName = bizName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static Dim getDefault() {
|
||||
return new Dim("日期", "time", "2023-05-28",
|
||||
Constants.DAY_FORMAT,
|
||||
|
||||
@@ -51,7 +51,6 @@ public class QueryStat {
|
||||
private String resultCacheKey;
|
||||
private String queryOptMode;
|
||||
|
||||
|
||||
public QueryStat setQueryOptMode(String queryOptMode) {
|
||||
this.queryOptMode = queryOptMode;
|
||||
return this;
|
||||
@@ -219,9 +218,8 @@ public class QueryStat {
|
||||
return JSONObject.parseArray(metrics, String.class);
|
||||
}
|
||||
|
||||
|
||||
public List<String> getDimensionListBizName() {
|
||||
return JSONObject.parseArray(dimensions, String.class);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ public class SchemaItem extends RecordInfo {
|
||||
|
||||
private Integer sensitiveLevel = SensitiveLevelEnum.LOW.getCode();
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
|
||||
@@ -31,7 +31,6 @@ public class DomainReq extends SchemaItem {
|
||||
return String.join(",", viewOrgs);
|
||||
}
|
||||
|
||||
|
||||
public String getAdmin() {
|
||||
return String.join(",", admins);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,6 @@ public class ModelReq extends SchemaItem {
|
||||
|
||||
private List<String> adminOrgs = new ArrayList<>();
|
||||
|
||||
|
||||
public List<Dim> getTimeDimension() {
|
||||
if (CollectionUtils.isEmpty(modelDetail.getDimensions())) {
|
||||
return Lists.newArrayList();
|
||||
@@ -50,7 +49,6 @@ public class ModelReq extends SchemaItem {
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
public String getViewer() {
|
||||
return String.join(",", viewers);
|
||||
}
|
||||
@@ -59,7 +57,6 @@ public class ModelReq extends SchemaItem {
|
||||
return String.join(",", viewOrgs);
|
||||
}
|
||||
|
||||
|
||||
public String getAdmin() {
|
||||
return String.join(",", admins);
|
||||
}
|
||||
@@ -68,5 +65,4 @@ public class ModelReq extends SchemaItem {
|
||||
return String.join(",", adminOrgs);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -23,5 +23,4 @@ public class SqlExecuteReq {
|
||||
return String.format(LIMIT_WRAPPER, sql);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@ public class ModelResp extends SchemaItem {
|
||||
|
||||
private Integer metricCnt;
|
||||
|
||||
|
||||
public boolean openToAll() {
|
||||
return isOpen != null && isOpen == 1;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ public class QueryMultiStructReq {
|
||||
|
||||
List<QueryStructReq> queryStructReqs;
|
||||
|
||||
|
||||
public String toCustomizedString() {
|
||||
return JSONObject.toJSONString(queryStructReqs);
|
||||
}
|
||||
@@ -21,4 +20,5 @@ public class QueryMultiStructReq {
|
||||
public String generateCommandMd5() {
|
||||
return DigestUtils.md5Hex(this.toCustomizedString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -142,7 +142,6 @@ public class QueryStructReq {
|
||||
return stringBuilder.toString();
|
||||
}
|
||||
|
||||
|
||||
public String generateCommandMd5() {
|
||||
return DigestUtils.md5Hex(this.toCustomizedString());
|
||||
}
|
||||
@@ -178,7 +177,6 @@ public class QueryStructReq {
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* convert queryStructReq to QueryS2QLReq
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user