Skip to content

Commit

Permalink
Open front code and merge update of branch-0.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
allenzhou(周玉壮) committed Dec 21, 2020
1 parent 4be47f3 commit d875f7d
Show file tree
Hide file tree
Showing 329 changed files with 28,263 additions and 1,405 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gradle
.github
.git/
.idea/
build/
Expand All @@ -10,4 +9,4 @@ out/
__pycache__/
*.pyc
logs
dist/
dist
201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

34 changes: 26 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def defaultEncoding = 'UTF-8'
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
}
}

Expand All @@ -42,9 +44,8 @@ dependencies {

repositories {
mavenLocal()
mavenCentral()
maven {
url "https://repo.spring.io/libs-milestone"
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
}

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

tasks.startScripts << {
def scriptFile = file "${outputDir}/${applicationName}"
Expand Down Expand Up @@ -109,10 +109,10 @@ subprojects {

repositories {
mavenLocal()
mavenCentral()
maven {
url "https://repo.spring.io/libs-milestone"
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
// mavenCentral()
}

processResources {
Expand All @@ -128,4 +128,22 @@ subprojects {
}
}

apply from: "profile.gradle"
configurations.all {
resolutionStrategy {
force 'org.springframework:spring-aop:5.1.15.RELEASE'
force 'org.springframework:spring-aspects:5.1.15.RELEASE'
force 'org.springframework:spring-beans:5.1.15.RELEASE'
force 'org.springframework:spring-context:5.1.15.RELEASE'
force 'org.springframework:spring-core:5.1.15.RELEASE'
force 'org.springframework:spring-expressions:5.1.15.RELEASE'
force 'org.springframework:spring-jcl:5.1.15.RELEASE'
force 'org.springframework:spring-jdbc:5.1.15.RELEASE'
force 'org.springframework:spring-orm:5.1.15.RELEASE'
force 'org.springframework:spring-test:5.1.15.RELEASE'
force 'org.springframework:spring-tx:5.1.15.RELEASE'
force 'org.springframework:spring-web:5.1.15.RELEASE'
force 'org.springframework:spring-webmvc:5.1.15.RELEASE'
}
}

apply from: "profile.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,18 @@
package com.webank.wedatasphere.qualitis.metadata.client;


import com.webank.wedatasphere.qualitis.exception.UnExpectedRequestException;
import com.webank.wedatasphere.qualitis.metadata.exception.MetaDataAcquireFailedException;
import com.webank.wedatasphere.qualitis.metadata.request.GetClusterByUserRequest;
import com.webank.wedatasphere.qualitis.metadata.request.GetColumnByUserAndTableRequest;
import com.webank.wedatasphere.qualitis.metadata.request.GetDbByUserAndClusterRequest;
import com.webank.wedatasphere.qualitis.metadata.request.GetTableByUserAndDbRequest;
import com.webank.wedatasphere.qualitis.metadata.response.ClusterMappingDetail;
import com.webank.wedatasphere.qualitis.metadata.response.DataInfo;
import com.webank.wedatasphere.qualitis.metadata.response.cluster.ClusterInfoDetail;
import com.webank.wedatasphere.qualitis.metadata.response.column.ColumnInfoDetail;
import com.webank.wedatasphere.qualitis.metadata.response.db.DbInfoDetail;
import com.webank.wedatasphere.qualitis.metadata.response.table.TableInfoDetail;
import com.webank.wedatasphere.qualitis.exception.UnExpectedRequestException;
import com.webank.wedatasphere.qualitis.metadata.request.GetDbByUserAndClusterRequest;
import com.webank.wedatasphere.qualitis.metadata.response.DataInfo;
import com.webank.wedatasphere.qualitis.metadata.response.column.ColumnInfoDetail;
import com.webank.wedatasphere.qualitis.metadata.response.db.DbInfoDetail;
import com.webank.wedatasphere.qualitis.metadata.response.table.TableInfoDetail;
import java.util.List;

/**
* @author howeye
Expand Down Expand Up @@ -69,6 +64,19 @@ DataInfo<DbInfoDetail> getDbByUserAndCluster(GetDbByUserAndClusterRequest reques
DataInfo<TableInfoDetail> getTableByUserAndDb(GetTableByUserAndDbRequest request)
throws MetaDataAcquireFailedException, UnExpectedRequestException;

/**
* Get table commit from table basic info. More table details can be obtained in the future
* @param clusterName
* @param dbName
* @param tableName
* @param userName
* @return
* @throws MetaDataAcquireFailedException
* @throws UnExpectedRequestException
*/
String getTableComment(String clusterName, String dbName, String tableName, String userName)
throws MetaDataAcquireFailedException, UnExpectedRequestException;

/**
* Get column by user and table
* @param request
Expand All @@ -79,4 +87,17 @@ DataInfo<TableInfoDetail> getTableByUserAndDb(GetTableByUserAndDbRequest request
DataInfo<ColumnInfoDetail> getColumnByUserAndTable(GetColumnByUserAndTableRequest request)
throws MetaDataAcquireFailedException, UnExpectedRequestException;

/**
* Get the columns' information of the table
* @param clusterName
* @param dbName
* @param tableName
* @param userName
* @return
* @throws MetaDataAcquireFailedException
* @throws UnExpectedRequestException
*/
List<ColumnInfoDetail> getColumnInfo(String clusterName, String dbName, String tableName, String userName)
throws MetaDataAcquireFailedException, UnExpectedRequestException;

}
Loading

0 comments on commit d875f7d

Please sign in to comment.