vscode 项目
This commit is contained in:
parent
a58fd1b3a1
commit
a8be2b40b3
@ -14,6 +14,11 @@ public class App {
|
|||||||
|
|
||||||
public static final class LineSplitter implements FlatMapFunction<String, Tuple2<String, Integer>> {
|
public static final class LineSplitter implements FlatMapFunction<String, Tuple2<String, Integer>> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = -8040066741965799728L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void flatMap(String s, Collector<Tuple2<String, Integer>> collector) throws Exception {
|
public void flatMap(String s, Collector<Tuple2<String, Integer>> collector) throws Exception {
|
||||||
String[] tokens = s.toLowerCase().split("\\W+");
|
String[] tokens = s.toLowerCase().split("\\W+");
|
||||||
|
@ -18,6 +18,10 @@ import java.sql.ResultSet;
|
|||||||
public class SourceFromMySQL extends RichSourceFunction<Student> {
|
public class SourceFromMySQL extends RichSourceFunction<Student> {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
private PreparedStatement ps;
|
private PreparedStatement ps;
|
||||||
private Connection connection;
|
private Connection connection;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user