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
6503c349
Commit
6503c349
authored
Jan 05, 2023
by
吴延飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复旅行信息旅行时长没有正确插入的问题。bug fixed,
parent
24b01b53
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Travel.java
...m-streaming/src/main/java/com/zhht/irn/entity/Travel.java
+4
-4
DirectionEvalJob.java
...ming/src/main/java/com/zhht/irn/job/DirectionEvalJob.java
+1
-1
TravelInfoJob.java
...reaming/src/main/java/com/zhht/irn/job/TravelInfoJob.java
+1
-1
No files found.
realtime/hologram-streaming/src/main/java/com/zhht/irn/entity/Travel.java
View file @
6503c349
...
...
@@ -116,8 +116,8 @@ public class Travel {
//实际停车次数
private
int
stopCount
;
//停车总时长
private
double
stopTime
;
//停车总时长
, 单位毫秒
private
int
stopTime
;
//平均车速
private
double
avgSpeed
;
...
...
@@ -392,11 +392,11 @@ public class Travel {
this
.
stopCount
=
stopCount
;
}
public
double
getStopTime
()
{
public
int
getStopTime
()
{
return
stopTime
;
}
public
void
setStopTime
(
double
stopTime
)
{
public
void
setStopTime
(
int
stopTime
)
{
this
.
stopTime
=
stopTime
;
}
...
...
realtime/hologram-streaming/src/main/java/com/zhht/irn/job/DirectionEvalJob.java
View file @
6503c349
...
...
@@ -70,7 +70,7 @@ public class DirectionEvalJob {
.
keyBy
(
record
->
record
.
getCrossId
());
// 定义好doris sink builder
DorisSink
.
Builder
<
String
>
builder
=
DorisUtils
.
getBuilder
(
"doris-connector.properties"
);
DorisSink
.
Builder
<
String
>
builder
=
DorisUtils
.
getBuilder
(
"doris-connector
-direction-eval
.properties"
);
// 周期数据join 旅行事件
cycleStream
.
assignTimestampsAndWatermarks
(
cycleWatermarkStrategy
)
...
...
realtime/hologram-streaming/src/main/java/com/zhht/irn/job/TravelInfoJob.java
View file @
6503c349
...
...
@@ -93,7 +93,7 @@ public class TravelInfoJob {
boolean
stopped
=
false
;
List
<
Location
>
locations
=
travel
.
getLocations
();
long
stopTime
=
0
;
int
stopTime
=
0
;
int
stopCount
=
0
;
for
(
int
j
=
0
;
j
<
locations
.
size
();
j
++)
{
...
...
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