Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
ZHHT-IRN-BD-ANALYSIS
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李凯旋
ZHHT-IRN-BD-ANALYSIS
Commits
0afe921a
Commit
0afe921a
authored
Oct 29, 2022
by
余根龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绿信比
parent
c4db3a4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
GreenRadioSink.java
...aming/src/main/java/com/zhht/irn/sink/GreenRadioSink.java
+0
-6
No files found.
realtime/hologram-streaming/src/main/java/com/zhht/irn/sink/GreenRadioSink.java
View file @
0afe921a
...
@@ -13,24 +13,18 @@ import java.sql.PreparedStatement;
...
@@ -13,24 +13,18 @@ import java.sql.PreparedStatement;
* domain traffic
* domain traffic
*/
*/
public
class
GreenRadioSink
extends
RichSinkFunction
<
Cycle
>
{
public
class
GreenRadioSink
extends
RichSinkFunction
<
Cycle
>
{
Connection
connection
;
Connection
connection
;
PreparedStatement
insertPstmt
;
PreparedStatement
insertPstmt
;
PreparedStatement
updatePstmt
;
PreparedStatement
updatePstmt
;
@Override
@Override
public
void
open
(
Configuration
parameters
)
throws
Exception
{
public
void
open
(
Configuration
parameters
)
throws
Exception
{
super
.
open
(
parameters
);
super
.
open
(
parameters
);
// path暂定为固定值
// path暂定为固定值
String
path
=
"F:\\workspace\\ZHHT-IRN-BD-ANALYSIS\\realtime\\hologram-streaming\\src\\main\\resources\\mysql.properties"
;
String
path
=
"F:\\workspace\\ZHHT-IRN-BD-ANALYSIS\\realtime\\hologram-streaming\\src\\main\\resources\\mysql.properties"
;
connection
=
MySQLUtils
.
getConnection
(
path
);
connection
=
MySQLUtils
.
getConnection
(
path
);
insertPstmt
=
connection
.
prepareStatement
(
"insert into app_cycle_green_ratio(id,cross_code,green_radio) values (?,?,?)"
);
insertPstmt
=
connection
.
prepareStatement
(
"insert into app_cycle_green_ratio(id,cross_code,green_radio) values (?,?,?)"
);
//updatePstmt = connection.prepareStatement("update wyf_test set lxb=? where cross_code=?");
//updatePstmt = connection.prepareStatement("update wyf_test set lxb=? where cross_code=?");
}
}
@Override
@Override
public
void
close
()
throws
Exception
{
public
void
close
()
throws
Exception
{
super
.
close
();
super
.
close
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment