Commit b8fa4f79 authored by zhoushiguang's avatar zhoushiguang

路段路况计算优化

parent e8364935
......@@ -96,7 +96,7 @@ public class RidTrafficStateMain implements Serializable {
//.keyBy(o->(o.getRoadnet().getSegmentId()))
//.process(new RidMotorCarProcessWindow())
.keyBy(o->o.getRoadnet().getRid())
.window(SlidingEventTimeWindows.of(Time.minutes(2), Time.seconds(30)))
.window(SlidingEventTimeWindows.of(Time.minutes(2), Time.seconds(1)))
.process(new RidProcessWindow())
.name("路段交通路况-按RID渠化段分组车辆");
......
package com.wanji.indicators.task.trafficstate.model;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.ToString;
......@@ -37,4 +38,7 @@ public class LaneTrafficStateResult implements Serializable {
private Double trafficIndex;
private List<Integer> trackIdList;
@JSONField(serialize = false)
private long createTime;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment