forked from DataLinkDC/dinky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature-733][admin,web,client] Add Flink meta store info and column …
…details (DataLinkDC#734) Co-authored-by: wenmo <32723967+wenmo@users.noreply.github.com>
- Loading branch information
Showing
16 changed files
with
505 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
dlink-client/dlink-client-1.11/src/main/java/com/dlink/sql/FlinkQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.dlink.sql; | ||
|
||
/** | ||
* FlinkQuery | ||
* | ||
* @author wenmo | ||
* @since 2022/7/18 19:10 | ||
**/ | ||
public class FlinkQuery extends AbstractFlinkQuery { | ||
} |
10 changes: 10 additions & 0 deletions
10
dlink-client/dlink-client-1.12/src/main/java/com/dlink/sql/FlinkQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.dlink.sql; | ||
|
||
/** | ||
* FlinkQuery | ||
* | ||
* @author wenmo | ||
* @since 2022/7/18 19:10 | ||
**/ | ||
public class FlinkQuery extends AbstractFlinkQuery { | ||
} |
10 changes: 10 additions & 0 deletions
10
dlink-client/dlink-client-1.13/src/main/java/com/dlink/sql/FlinkQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.dlink.sql; | ||
|
||
/** | ||
* FlinkQuery | ||
* | ||
* @author wenmo | ||
* @since 2022/7/18 19:10 | ||
**/ | ||
public class FlinkQuery extends AbstractFlinkQuery { | ||
} |
10 changes: 10 additions & 0 deletions
10
dlink-client/dlink-client-1.14/src/main/java/com/dlink/sql/FlinkQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.dlink.sql; | ||
|
||
/** | ||
* FlinkQuery | ||
* | ||
* @author wenmo | ||
* @since 2022/7/18 19:10 | ||
**/ | ||
public class FlinkQuery extends AbstractFlinkQuery { | ||
} |
10 changes: 10 additions & 0 deletions
10
dlink-client/dlink-client-1.15/src/main/java/com/dlink/sql/FlinkQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.dlink.sql; | ||
|
||
/** | ||
* FlinkQuery | ||
* | ||
* @author wenmo | ||
* @since 2022/7/18 19:10 | ||
**/ | ||
public class FlinkQuery extends AbstractFlinkQuery { | ||
} |
86 changes: 86 additions & 0 deletions
86
dlink-client/dlink-client-base/src/main/java/com/dlink/sql/AbstractFlinkQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package com.dlink.sql; | ||
|
||
/** | ||
* AbstractFlinkQuery | ||
* | ||
* @author wenmo | ||
* @since 2022/7/18 18:43 | ||
**/ | ||
public abstract class AbstractFlinkQuery { | ||
|
||
public static String separator() { | ||
return ";\r\n"; | ||
} | ||
|
||
public static String defaultCatalog() { | ||
return "default_catalog"; | ||
} | ||
|
||
public static String defaultDatabase() { | ||
return "default_database"; | ||
} | ||
|
||
public static String showCatalogs() { | ||
return "SHOW CATALOGS"; | ||
} | ||
|
||
public static String useCatalog(String catalog) { | ||
return String.format("USE CATALOG %s", catalog); | ||
} | ||
|
||
public static String showDatabases() { | ||
return "SHOW DATABASES"; | ||
} | ||
|
||
public static String useDatabase(String database) { | ||
return String.format("USE %s", database); | ||
} | ||
|
||
public static String showTables() { | ||
return "SHOW TABLES"; | ||
} | ||
|
||
public static String showViews() { | ||
return "SHOW VIEWS"; | ||
} | ||
|
||
public static String showFunctions() { | ||
return "SHOW FUNCTIONS"; | ||
} | ||
|
||
public static String showUserFunctions() { | ||
return "SHOW USER FUNCTIONS"; | ||
} | ||
|
||
public static String showModules() { | ||
return "SHOW MODULES"; | ||
} | ||
|
||
public static String descTable(String table) { | ||
return String.format("DESC %s", table); | ||
} | ||
|
||
public static String columnName() { | ||
return "name"; | ||
} | ||
|
||
public static String columnType() { | ||
return "type"; | ||
} | ||
|
||
public static String columnNull() { | ||
return "null"; | ||
} | ||
|
||
public static String columnKey() { | ||
return "key"; | ||
} | ||
|
||
public static String columnExtras() { | ||
return "extras"; | ||
} | ||
|
||
public static String columnWatermark() { | ||
return "watermark"; | ||
} | ||
} |
Oops, something went wrong.