Skip to content

Commit 66a7d38

Browse files
Merge pull request #490 from Kabimon/dev-1.2.0
Dev-1.2.0-assets+warehourse+model
2 parents 4c62c74 + aa5322e commit 66a7d38

File tree

810 files changed

+56821
-597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

810 files changed

+56821
-597
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>dss-dataasset-management</artifactId>
7+
<groupId>com.webank.wedatasphere.dss</groupId>
8+
<version>1.0.1</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>data-assets-client</artifactId>
13+
14+
<properties>
15+
<maven.compiler.source>8</maven.compiler.source>
16+
<maven.compiler.target>8</maven.compiler.target>
17+
</properties>
18+
19+
<dependencies>
20+
<dependency>
21+
<groupId>org.apache.linkis</groupId>
22+
<artifactId>linkis-gateway-httpclient-support</artifactId>
23+
<version>${linkis.version}</version>
24+
</dependency>
25+
<dependency>
26+
<groupId>org.projectlombok</groupId>
27+
<artifactId>lombok</artifactId>
28+
<version>1.18.16</version>
29+
<scope>compile</scope>
30+
</dependency>
31+
32+
</dependencies>
33+
34+
<build>
35+
<plugins>
36+
<plugin>
37+
<groupId>org.apache.maven.plugins</groupId>
38+
<artifactId>maven-deploy-plugin</artifactId>
39+
</plugin>
40+
41+
<plugin>
42+
<groupId>net.alchim31.maven</groupId>
43+
<artifactId>scala-maven-plugin</artifactId>
44+
</plugin>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-jar-plugin</artifactId>
48+
</plugin>
49+
</plugins>
50+
<resources>
51+
<resource>
52+
<directory>src/main/resources</directory>
53+
</resource>
54+
</resources>
55+
<finalName>${project.artifactId}-${project.version}</finalName>
56+
</build>
57+
58+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
4+
import org.apache.commons.lang.StringUtils;
5+
6+
import java.util.Optional;
7+
8+
public enum ClassificationConstant {
9+
/**
10+
* 指标
11+
*/
12+
INDICATOR(1, "indicator"),
13+
/**
14+
* 度量
15+
*/
16+
MEASURE(2,"measure"),
17+
/**
18+
* 维度
19+
*/
20+
DIMENSION(0, "dimension"),
21+
/**
22+
* 主题
23+
*/
24+
THEME(3, "theme"),
25+
/**
26+
* 分层
27+
*/
28+
LAYER(4, "layer");
29+
30+
private int type;
31+
32+
public static final String SEPARATOR = "_";
33+
34+
private String typeCode;
35+
36+
ClassificationConstant(int type, String typeCode) {
37+
this.type = type;
38+
39+
this.typeCode = typeCode;
40+
}
41+
42+
public static boolean isTypeScope(int type) {
43+
return type >= 0 && type < values().length;
44+
}
45+
46+
public static boolean isTypeScope(String type) {
47+
return getClassificationConstantByTypeCode(type).isPresent();
48+
}
49+
50+
public static Optional<ClassificationConstant> getClassificationConstantByTypeCode(String typeCode) {
51+
for (ClassificationConstant c : values()) {
52+
if (StringUtils.equals(c.typeCode,typeCode)) {
53+
return Optional.of(c);
54+
}
55+
}
56+
return Optional.empty();
57+
}
58+
59+
public static Optional<ClassificationConstant> getClassificationConstantByType(int type) {
60+
for (ClassificationConstant c : values()) {
61+
if (c.type == type) {
62+
return Optional.of(c);
63+
}
64+
}
65+
return Optional.empty();
66+
}
67+
68+
69+
70+
public int getType() {
71+
return type;
72+
}
73+
74+
public String getTypeCode() {
75+
return typeCode;
76+
}
77+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
import lombok.Data;
4+
5+
@Data
6+
public class CreateLabelInfo {
7+
private String name;
8+
9+
private String guid;
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
4+
import lombok.Data;
5+
6+
@Data
7+
public class CreateModelTypeInfo {
8+
private String name;
9+
10+
private String guid;
11+
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
import lombok.Data;
4+
5+
import java.io.Serializable;
6+
import java.util.List;
7+
8+
9+
@Data
10+
public class HiveSimpleInfo implements Serializable {
11+
private String guid;
12+
private String name;
13+
private String qualifiedName;
14+
private String createTime;
15+
private String owner;
16+
private String aliases;
17+
private String lastAccessTime;
18+
private String comment;
19+
private List<String> classifications;
20+
private String totalSize;
21+
private String external;
22+
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
4+
import lombok.Data;
5+
6+
@Data
7+
public class HiveTblStatsDTO {
8+
9+
private Integer columnCount = 0;
10+
11+
private Long totalSize = 0L;
12+
13+
private Integer numFiles = 0;
14+
15+
private Integer partitionCount = 0;
16+
17+
private Integer accessCount = 0;
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
import lombok.Data;
4+
5+
6+
@Data
7+
public class PartInfo {
8+
private String partName;
9+
private int reordCnt;
10+
private int store;
11+
private String createTime;
12+
private String lastAccessTime;
13+
private int fileCount;
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
4+
public enum QueryType {
5+
PRECISE(1),
6+
FUZZY(0);
7+
private int code;
8+
9+
QueryType(int code) {
10+
this.code = code;
11+
}
12+
13+
public int getCode() {
14+
return code;
15+
}
16+
17+
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
import lombok.Data;
4+
5+
@Data
6+
public class SearchLabelInfo {
7+
private String name;
8+
private String guid;
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.webank.wedatasphere.dss.data.governance.entity;
2+
3+
import lombok.Data;
4+
5+
@Data
6+
public class UpdateLabelInfo {
7+
private String name;
8+
9+
private String guid;
10+
}

0 commit comments

Comments
 (0)