Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flink-monitor
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
赵建伟
flink-monitor
Commits
ac1be1bb
Commit
ac1be1bb
authored
Mar 20, 2020
by
赵建伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update codes
parent
7473e043
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PortraitMonitorSucOperator.java
...mei/data/monitor/operator/PortraitMonitorSucOperator.java
+1
-1
No files found.
src/main/java/com/gmei/data/monitor/operator/PortraitMonitorSucOperator.java
View file @
ac1be1bb
...
@@ -58,7 +58,7 @@ public class PortraitMonitorSucOperator implements BaseOperator{
...
@@ -58,7 +58,7 @@ public class PortraitMonitorSucOperator implements BaseOperator{
public
long
extractAscendingTimestamp
(
String
element
)
{
public
long
extractAscendingTimestamp
(
String
element
)
{
JSONObject
jsonObject
=
JSON
.
parseObject
(
element
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
element
);
String
dateTimeStr
=
jsonObject
.
getString
(
"log_time"
);
String
dateTimeStr
=
jsonObject
.
getString
(
"log_time"
);
long
dateTime
=
Math
.
round
(
Double
.
valueOf
(
dateTimeStr
));
long
dateTime
=
Math
.
round
(
Double
.
valueOf
(
dateTimeStr
))
*
1000
;
return
dateTime
;
return
dateTime
;
}
}
}).
map
(
new
MapFunction
<
String
,
GmPortraitResult
>()
{
}).
map
(
new
MapFunction
<
String
,
GmPortraitResult
>()
{
...
...
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