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
811d502b
Commit
811d502b
authored
Dec 20, 2022
by
黄准
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车道指标相关计算逻辑
parent
5ddf6655
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
LaneNormProcessFunction.java
.../java/com/zhht/irn/functions/LaneNormProcessFunction.java
+1
-1
LaneNormJob.java
...streaming/src/main/java/com/zhht/irn/job/LaneNormJob.java
+2
-2
No files found.
realtime/hologram-streaming/src/main/java/com/zhht/irn/functions/LaneNormProcessFunction.java
View file @
811d502b
...
@@ -185,7 +185,7 @@ public class LaneNormProcessFunction extends KeyedCoProcessFunction<String, Cycl
...
@@ -185,7 +185,7 @@ public class LaneNormProcessFunction extends KeyedCoProcessFunction<String, Cycl
@Override
@Override
public
void
onTimer
(
long
timestamp
,
OnTimerContext
ctx
,
Collector
<
List
<
LaneNorm
>>
out
)
throws
Exception
{
public
void
onTimer
(
long
timestamp
,
OnTimerContext
ctx
,
Collector
<
List
<
LaneNorm
>>
out
)
throws
Exception
{
super
.
onTimer
(
timestamp
,
ctx
,
out
);
super
.
onTimer
(
timestamp
,
ctx
,
out
);
System
.
out
.
println
(
"触发定时器了。。。。"
);
//
System.out.println("触发定时器了。。。。");
//通过定时器清空字典表 防止字典表数据有更新
//通过定时器清空字典表 防止字典表数据有更新
dict
.
remove
(
"phaseDirection"
);
dict
.
remove
(
"phaseDirection"
);
dict
.
remove
(
"laneList"
);
dict
.
remove
(
"laneList"
);
...
...
realtime/hologram-streaming/src/main/java/com/zhht/irn/job/LaneNormJob.java
View file @
811d502b
...
@@ -49,14 +49,14 @@ public class LaneNormJob {
...
@@ -49,14 +49,14 @@ public class LaneNormJob {
public
Cycle
map
(
String
cycle
)
throws
Exception
{
public
Cycle
map
(
String
cycle
)
throws
Exception
{
Cycle
cycle1
=
JSON
.
parseObject
(
cycle
,
Cycle
.
class
);
Cycle
cycle1
=
JSON
.
parseObject
(
cycle
,
Cycle
.
class
);
cycle1
=
getCycle
(
cycle1
);
cycle1
=
getCycle
(
cycle1
);
System
.
out
.
println
(
"周期数据->"
+
cycle
);
//
System.out.println("周期数据->"+cycle);
return
cycle1
;
return
cycle1
;
}
}
};
};
MapFunction
<
String
,
TravelEvent
>
getTravelEventFunction
=
new
MapFunction
<
String
,
TravelEvent
>()
{
MapFunction
<
String
,
TravelEvent
>
getTravelEventFunction
=
new
MapFunction
<
String
,
TravelEvent
>()
{
@Override
@Override
public
TravelEvent
map
(
String
travelEvent
)
throws
Exception
{
public
TravelEvent
map
(
String
travelEvent
)
throws
Exception
{
System
.
out
.
println
(
"旅行事件数据->"
+
travelEvent
);
//
System.out.println("旅行事件数据->"+travelEvent);
return
JSON
.
parseObject
(
travelEvent
,
TravelEvent
.
class
);
return
JSON
.
parseObject
(
travelEvent
,
TravelEvent
.
class
);
}
}
};
};
...
...
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