Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
ctr-estimate
Project
Project
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
赵建伟
ctr-estimate
Commits
0e4fc883
Commit
0e4fc883
authored
Apr 11, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
8065f998
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CtrEstimatePfrOperator.java
...va/com/gmei/data/ctr/operator/CtrEstimatePfrOperator.java
+2
-2
No files found.
src/main/java/com/gmei/data/ctr/operator/CtrEstimatePfrOperator.java
View file @
0e4fc883
...
@@ -111,7 +111,7 @@ public class CtrEstimatePfrOperator implements BaseOperator{
...
@@ -111,7 +111,7 @@ public class CtrEstimatePfrOperator implements BaseOperator{
}
}
return
false
;
return
false
;
}
}
});
})
.
setParallelism
(
parallelism
)
;
//filter.print();
//filter.print();
SingleOutputStreamOperator
map
=
filter
SingleOutputStreamOperator
map
=
filter
.
map
(
new
MapFunction
<
JSONObject
,
CtrEstimatePfrEtl
>()
{
.
map
(
new
MapFunction
<
JSONObject
,
CtrEstimatePfrEtl
>()
{
...
@@ -155,7 +155,7 @@ public class CtrEstimatePfrOperator implements BaseOperator{
...
@@ -155,7 +155,7 @@ public class CtrEstimatePfrOperator implements BaseOperator{
}
}
return
ctrEstimatePfrEtl
;
return
ctrEstimatePfrEtl
;
}
}
});
})
.
setParallelism
(
parallelism
)
;
//map.print();
//map.print();
DataStream
<
DeviceCurrentEstimatePfrTmp
>
tidbAsyncDataStream
=
AsyncDataStream
DataStream
<
DeviceCurrentEstimatePfrTmp
>
tidbAsyncDataStream
=
AsyncDataStream
.
unorderedWait
(
map
,
new
TidbMysqlAsyncPfrSource
(
jerryJdbcUrl
,
jerryUsername
,
jerryPassword
),
1
,
TimeUnit
.
MINUTES
,
1000
)
.
unorderedWait
(
map
,
new
TidbMysqlAsyncPfrSource
(
jerryJdbcUrl
,
jerryUsername
,
jerryPassword
),
1
,
TimeUnit
.
MINUTES
,
1000
)
...
...
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