-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
haiji.yang
committed
Jan 7, 2021
1 parent
71e92c9
commit d55f676
Showing
135 changed files
with
330 additions
and
276 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
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>java-advanced</artifactId> | ||
<groupId>com.javayh.advanced</groupId> | ||
<version>1.0.0.RELEASE</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>source-flink-code</artifactId> | ||
|
||
<dependencies> | ||
<!-- Start Flink --> | ||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-java</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-streaming-java_2.11</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-clients_2.11</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-connector-kafka-0.11_2.11</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-table-api-java-bridge_2.11</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-table-planner_2.11</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.flink</groupId> | ||
<artifactId>flink-table-planner-blink_2.11</artifactId> | ||
<version>${flink.version}</version> | ||
</dependency> | ||
<!-- End Flink --> | ||
</dependencies> | ||
|
||
</project> |
23 changes: 23 additions & 0 deletions
23
source-flink-code/src/main/java/com/javayh/advanced/flink/wc/WordCount.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,23 @@ | ||
package com.javayh.advanced.flink.wc; | ||
|
||
import org.apache.flink.api.java.ExecutionEnvironment; | ||
|
||
/** | ||
* <p> | ||
* 批处理的demo | ||
* </p> | ||
* | ||
* @author Dylan | ||
* @version 1.0.0 | ||
* @since 2021-01-07 | ||
*/ | ||
public class WordCount { | ||
public static void main(String[] args) throws Exception { | ||
//创建执行环境 | ||
ExecutionEnvironment env = ExecutionEnvironment.createCollectionsEnvironment(); | ||
//从文件中读取数据 | ||
String inputPath = ""; | ||
|
||
|
||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
.../javayh/advanced/AdvancedApplication.java → ...yh/advanced/java/AdvancedApplication.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
2 changes: 1 addition & 1 deletion
2
.../javayh/advanced/algorithm/SortUtils.java → ...yh/advanced/java/algorithm/SortUtils.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
2 changes: 1 addition & 1 deletion
2
...advanced/algorithm/example/sort/冒泡排序.java → ...ced/java/algorithm/example/sort/冒泡排序.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
2 changes: 1 addition & 1 deletion
2
...advanced/algorithm/example/sort/快速排序.java → ...ced/java/algorithm/example/sort/快速排序.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
2 changes: 1 addition & 1 deletion
2
...advanced/algorithm/example/sort/插入排序.java → ...ced/java/algorithm/example/sort/插入排序.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
2 changes: 1 addition & 1 deletion
2
...vayh/advanced/algorithm/example/两数相加.java → ...advanced/java/algorithm/example/两数相加.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.javayh.advanced.algorithm.example; | ||
package com.javayh.advanced.java.algorithm.example; | ||
|
||
/** | ||
* <p> | ||
|
2 changes: 1 addition & 1 deletion
2
...vayh/advanced/algorithm/example/二分查找.java → ...advanced/java/algorithm/example/二分查找.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.javayh.advanced.algorithm.example; | ||
package com.javayh.advanced.java.algorithm.example; | ||
|
||
/** | ||
* <p> | ||
|
2 changes: 1 addition & 1 deletion
2
...vayh/advanced/algorithm/example/取模运算.java → ...advanced/java/algorithm/example/取模运算.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
2 changes: 1 addition & 1 deletion
2
...vayh/advanced/algorithm/example/排列组合.java → ...advanced/java/algorithm/example/排列组合.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
2 changes: 1 addition & 1 deletion
2
...avayh/advanced/algorithm/example/水仙花.java → .../advanced/java/algorithm/example/水仙花.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.javayh.advanced.algorithm.example; | ||
package com.javayh.advanced.java.algorithm.example; | ||
|
||
/** | ||
* <p> | ||
|
2 changes: 1 addition & 1 deletion
2
.../advanced/algorithm/example/算法之递归求兔子.java → ...nced/java/algorithm/example/算法之递归求兔子.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.javayh.advanced.algorithm.example; | ||
package com.javayh.advanced.java.algorithm.example; | ||
|
||
/** | ||
* <p> | ||
|
2 changes: 1 addition & 1 deletion
2
...ayh/advanced/algorithm/kmp/KmpSearch.java → ...dvanced/java/algorithm/kmp/KmpSearch.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
2 changes: 1 addition & 1 deletion
2
...advanced/algorithm/kmp/ViolenceMatch.java → ...ced/java/algorithm/kmp/ViolenceMatch.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.javayh.advanced.algorithm.kmp; | ||
package com.javayh.advanced.java.algorithm.kmp; | ||
|
||
/** | ||
* <p> | ||
|
2 changes: 1 addition & 1 deletion
2
.../advanced/algorithm/recursion/MiGong.java → ...nced/java/algorithm/recursion/MiGong.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
2 changes: 1 addition & 1 deletion
2
...vanced/algorithm/search/BinarySearch.java → ...d/java/algorithm/search/BinarySearch.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.javayh.advanced.algorithm.search; | ||
package com.javayh.advanced.java.algorithm.search; | ||
|
||
/** | ||
* <p> | ||
|
Oops, something went wrong.