mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
[improvement][headless]Release brand new version of Translator module.
This commit is contained in:
@@ -89,12 +89,7 @@ public class DataSetSchema implements Serializable {
|
||||
}
|
||||
|
||||
public SchemaElement getPartitionDimension() {
|
||||
for (SchemaElement dimension : dimensions) {
|
||||
if (dimension.isPartitionTime()) {
|
||||
return dimension;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return dimensions.stream().filter(SchemaElement::isPartitionTime).findFirst().orElse(null);
|
||||
}
|
||||
|
||||
public SchemaElement getPrimaryKey() {
|
||||
|
||||
@@ -4,8 +4,7 @@ import com.google.common.base.Objects;
|
||||
import com.tencent.supersonic.common.pojo.RecordInfo;
|
||||
import com.tencent.supersonic.common.pojo.enums.SensitiveLevelEnum;
|
||||
import com.tencent.supersonic.common.pojo.enums.TypeEnums;
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import lombok.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -17,19 +16,20 @@ import java.util.List;
|
||||
public class SchemaItem extends RecordInfo {
|
||||
|
||||
private static String aliasSplit = ",";
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
protected Long id;
|
||||
|
||||
private String bizName;
|
||||
protected String name;
|
||||
|
||||
private String description;
|
||||
protected String bizName;
|
||||
|
||||
private Integer status;
|
||||
protected String description;
|
||||
|
||||
private TypeEnums typeEnum;
|
||||
protected Integer status;
|
||||
|
||||
private Integer sensitiveLevel = SensitiveLevelEnum.LOW.getCode();
|
||||
protected TypeEnums typeEnum;
|
||||
|
||||
protected Integer sensitiveLevel = SensitiveLevelEnum.LOW.getCode();
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
|
||||
@@ -18,11 +18,6 @@ public enum MetricType {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Boolean isDerived(String src) {
|
||||
MetricType metricType = of(src);
|
||||
return Objects.nonNull(metricType) && metricType.equals(DERIVED);
|
||||
}
|
||||
|
||||
public static Boolean isDerived(MetricDefineType metricDefineType,
|
||||
MetricDefineByMeasureParams typeParams) {
|
||||
if (MetricDefineType.METRIC.equals(metricDefineType)) {
|
||||
|
||||
@@ -22,5 +22,4 @@ public class DimSchemaResp extends DimensionResp {
|
||||
public int hashCode() {
|
||||
return super.hashCode();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -65,4 +65,5 @@ public class SemanticSchemaResp {
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user