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
7a9779a7
Commit
7a9779a7
authored
Apr 26, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
eeba3299
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
CtrPfrRctMysqlSink.java
src/main/java/com/gmei/data/ctr/sink/CtrPfrRctMysqlSink.java
+0
-9
No files found.
src/main/java/com/gmei/data/ctr/sink/CtrPfrRctMysqlSink.java
View file @
7a9779a7
...
...
@@ -314,20 +314,11 @@ public class CtrPfrRctMysqlSink extends RichSinkFunction<CtrPfrRctBean> {
private
LinkedList
<
PfrRecentInfo
>
getNewQueue
(
LinkedList
<
PfrRecentInfo
>
oldQueue
,
String
pfrStr
,
String
timeStr
,
Integer
queueSize
){
LinkedList
<
PfrRecentInfo
>
newQueue
=
new
LinkedList
<>();
// Map<String,Integer> pfrMap = StringUtil.transString2Map(pfrStr);
for
(
PfrRecentInfo
pfrRecentInfo
:
oldQueue
)
{
String
sevenDaysAgoTimeStr
=
DateUtil
.
getSevenDaysAgoTimeStr
(
new
Date
());
String
lastUpdateTime
=
pfrRecentInfo
.
getLastUpdateTime
();
if
(
DateUtil
.
getTimestampByDateStr
(
lastUpdateTime
)
>
DateUtil
.
getTimestampByDateStr
(
sevenDaysAgoTimeStr
)){
// String pfrName = pfrRecentInfo.getPfrName();
// Integer pfrCount = pfrRecentInfo.getPfrCount();
newQueue
.
add
(
pfrRecentInfo
);
// if(pfrMap.keySet().contains(pfrName)){
// newQueue.add(new PfrRecentInfo(pfrName,pfrCount + 1 ,timeStr));
// }else{
// newQueue.add(pfrRecentInfo);
// }
}
}
newQueue
.
add
(
new
PfrRecentInfo
(
pfrStr
,
1
,
timeStr
));
...
...
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