Skip to content

Commit 02fd9ee

Browse files
author
allenzhou(周玉壮)
committed
Open front code, refactor the front and back logic, added the management function of rule templates.
1 parent 8805923 commit 02fd9ee

File tree

326 files changed

+28234
-1404
lines changed

Some content is hidden

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

326 files changed

+28234
-1404
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gradle
2-
.github
32
.git/
43
.idea/
54
build/
@@ -10,4 +9,4 @@ out/
109
__pycache__/
1110
*.pyc
1211
logs
13-
dist/
12+
dist

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

build.gradle

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def defaultEncoding = 'UTF-8'
3232
buildscript {
3333
repositories {
3434
mavenLocal()
35-
mavenCentral()
35+
maven {
36+
url "http://maven.aliyun.com/nexus/content/groups/public/"
37+
}
3638
}
3739
}
3840

@@ -42,9 +44,8 @@ dependencies {
4244

4345
repositories {
4446
mavenLocal()
45-
mavenCentral()
4647
maven {
47-
url "https://repo.spring.io/libs-milestone"
48+
url "http://maven.aliyun.com/nexus/content/groups/public/"
4849
}
4950
}
5051

@@ -54,8 +55,7 @@ applicationDefaultJvmArgs =
5455
['-Xms256M', '-Xmx2G',
5556
'-XX:+UseG1GC', '-XX:MaxGCPauseMillis=20', '-XX:InitiatingHeapOccupancyPercent=50',
5657
'-Dfile.encoding=UTF-8', "-Djava.library.path=HADOOP_COMMON_LIB_NATIVE_DIR",
57-
"-Dlog.file=${project.name}-MY_USER-MY_HOSTNAME.log",
58-
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8091"]
58+
"-Dlog.file=${project.name}-MY_USER-MY_HOSTNAME.log"]
5959

6060
tasks.startScripts << {
6161
def scriptFile = file "${outputDir}/${applicationName}"
@@ -109,10 +109,10 @@ subprojects {
109109

110110
repositories {
111111
mavenLocal()
112-
mavenCentral()
113112
maven {
114-
url "https://repo.spring.io/libs-milestone"
113+
url "http://maven.aliyun.com/nexus/content/groups/public/"
115114
}
115+
// mavenCentral()
116116
}
117117

118118
processResources {
@@ -128,4 +128,22 @@ subprojects {
128128
}
129129
}
130130

131-
apply from: "profile.gradle"
131+
configurations.all {
132+
resolutionStrategy {
133+
force 'org.springframework:spring-aop:5.1.15.RELEASE'
134+
force 'org.springframework:spring-aspects:5.1.15.RELEASE'
135+
force 'org.springframework:spring-beans:5.1.15.RELEASE'
136+
force 'org.springframework:spring-context:5.1.15.RELEASE'
137+
force 'org.springframework:spring-core:5.1.15.RELEASE'
138+
force 'org.springframework:spring-expressions:5.1.15.RELEASE'
139+
force 'org.springframework:spring-jcl:5.1.15.RELEASE'
140+
force 'org.springframework:spring-jdbc:5.1.15.RELEASE'
141+
force 'org.springframework:spring-orm:5.1.15.RELEASE'
142+
force 'org.springframework:spring-test:5.1.15.RELEASE'
143+
force 'org.springframework:spring-tx:5.1.15.RELEASE'
144+
force 'org.springframework:spring-web:5.1.15.RELEASE'
145+
force 'org.springframework:spring-webmvc:5.1.15.RELEASE'
146+
}
147+
}
148+
149+
apply from: "profile.gradle"

core/common/src/main/java/com/webank/wedatasphere/qualitis/metadata/client/MetaDataClient.java

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,18 @@
1717
package com.webank.wedatasphere.qualitis.metadata.client;
1818

1919

20+
import com.webank.wedatasphere.qualitis.exception.UnExpectedRequestException;
2021
import com.webank.wedatasphere.qualitis.metadata.exception.MetaDataAcquireFailedException;
2122
import com.webank.wedatasphere.qualitis.metadata.request.GetClusterByUserRequest;
2223
import com.webank.wedatasphere.qualitis.metadata.request.GetColumnByUserAndTableRequest;
2324
import com.webank.wedatasphere.qualitis.metadata.request.GetDbByUserAndClusterRequest;
2425
import com.webank.wedatasphere.qualitis.metadata.request.GetTableByUserAndDbRequest;
25-
import com.webank.wedatasphere.qualitis.metadata.response.ClusterMappingDetail;
2626
import com.webank.wedatasphere.qualitis.metadata.response.DataInfo;
2727
import com.webank.wedatasphere.qualitis.metadata.response.cluster.ClusterInfoDetail;
2828
import com.webank.wedatasphere.qualitis.metadata.response.column.ColumnInfoDetail;
2929
import com.webank.wedatasphere.qualitis.metadata.response.db.DbInfoDetail;
3030
import com.webank.wedatasphere.qualitis.metadata.response.table.TableInfoDetail;
31-
import com.webank.wedatasphere.qualitis.exception.UnExpectedRequestException;
32-
import com.webank.wedatasphere.qualitis.metadata.request.GetDbByUserAndClusterRequest;
33-
import com.webank.wedatasphere.qualitis.metadata.response.DataInfo;
34-
import com.webank.wedatasphere.qualitis.metadata.response.column.ColumnInfoDetail;
35-
import com.webank.wedatasphere.qualitis.metadata.response.db.DbInfoDetail;
36-
import com.webank.wedatasphere.qualitis.metadata.response.table.TableInfoDetail;
31+
import java.util.List;
3732

3833
/**
3934
* @author howeye
@@ -69,6 +64,19 @@ DataInfo<DbInfoDetail> getDbByUserAndCluster(GetDbByUserAndClusterRequest reques
6964
DataInfo<TableInfoDetail> getTableByUserAndDb(GetTableByUserAndDbRequest request)
7065
throws MetaDataAcquireFailedException, UnExpectedRequestException;
7166

67+
/**
68+
* Get table commit from table basic info. More table details can be obtained in the future
69+
* @param clusterName
70+
* @param dbName
71+
* @param tableName
72+
* @param userName
73+
* @return
74+
* @throws MetaDataAcquireFailedException
75+
* @throws UnExpectedRequestException
76+
*/
77+
String getTableComment(String clusterName, String dbName, String tableName, String userName)
78+
throws MetaDataAcquireFailedException, UnExpectedRequestException;
79+
7280
/**
7381
* Get column by user and table
7482
* @param request
@@ -79,4 +87,17 @@ DataInfo<TableInfoDetail> getTableByUserAndDb(GetTableByUserAndDbRequest request
7987
DataInfo<ColumnInfoDetail> getColumnByUserAndTable(GetColumnByUserAndTableRequest request)
8088
throws MetaDataAcquireFailedException, UnExpectedRequestException;
8189

90+
/**
91+
* Get the columns' information of the table
92+
* @param clusterName
93+
* @param dbName
94+
* @param tableName
95+
* @param userName
96+
* @return
97+
* @throws MetaDataAcquireFailedException
98+
* @throws UnExpectedRequestException
99+
*/
100+
List<ColumnInfoDetail> getColumnInfo(String clusterName, String dbName, String tableName, String userName)
101+
throws MetaDataAcquireFailedException, UnExpectedRequestException;
102+
82103
}

0 commit comments

Comments
 (0)