TrafficMongoModel.java 6.22 KB
package com.viontech.vo.traffic;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import org.springframework.data.annotation.Id;

import java.util.List;
import java.util.Map;

@JsonInclude(value = Include.NON_NULL)
//@Document(collection = "tb_traffic")
public class TrafficMongoModel implements Comparable<TrafficMongoModel> {
    @Id
    private String id;
    // @Indexed(direction = IndexDirection.DESCENDING)
    private String task_type;
    // @Indexed(direction = IndexDirection.DESCENDING)
    private String task_id;
    // @Indexed(direction = IndexDirection.DESCENDING)
    private String event_type;
    // @Indexed(direction = IndexDirection.DESCENDING)
    private String event_refid;
    // @Indexed(direction = IndexDirection.DESCENDING)
    private String event_dt;
    // @Indexed(direction = IndexDirection.DESCENDING)
    private String dev_unid;
    private Map aux_dev_info;
    private Map event_data;
    private List pics;
    private String event_cate;
    private String vdev_unid;
    private String vchan_duid;
    private String vchan_refid;
    private List video;
    private String test_pic_file;
    private String test_frame_no;
    private String subtask_id;
    private String source_type;
    /***
     * 相识度
     */
    private Double similarity;
    private String pic_name;
    private String video_name;
    private String unid;

    public String getPic_name() {
        return pic_name;
    }

    public void setPic_name(String pic_name) {
        this.pic_name = pic_name;
    }

    public String getVideo_name() {
        return video_name;
    }

    public void setVideo_name(String video_name) {
        this.video_name = video_name;
    }

    public String getTask_type() {
        return task_type;
    }

    public void setTask_type(String task_type) {
        this.task_type = task_type;
    }

    public String getTask_id() {
        return task_id;
    }

    public void setTask_id(String task_id) {
        this.task_id = task_id;
    }

    public String getEvent_type() {
        return event_type;
    }

    public void setEvent_type(String event_type) {
        this.event_type = event_type;
    }

    public String getEvent_refid() {
        return event_refid;
    }

    public void setEvent_refid(String event_refid) {
        this.event_refid = event_refid;
    }

    public String getEvent_dt() {
        return event_dt;
    }

    public void setEvent_dt(String event_dt) {
        this.event_dt = event_dt;
    }

    public String getDev_unid() {
        return dev_unid;
    }

    public void setDev_unid(String dev_unid) {
        this.dev_unid = dev_unid;
    }

    public Map getAux_dev_info() {
        return aux_dev_info;
    }

    public void setAux_dev_info(Map aux_dev_info) {
        this.aux_dev_info = aux_dev_info;
    }

    public Map getEvent_data() {
        return event_data;
    }

    public void setEvent_data(Map event_data) {
        this.event_data = event_data;
    }

    public List getPics() {
        return pics;
    }

    public void setPics(List pics) {
        this.pics = pics;
    }

    public String getEvent_cate() {
        return event_cate;
    }

    public void setEvent_cate(String event_cate) {
        this.event_cate = event_cate;
    }

    public String getVdev_unid() {
        return vdev_unid;
    }

    public void setVdev_unid(String vdev_unid) {
        this.vdev_unid = vdev_unid;
    }

    public String getVchan_duid() {
        return vchan_duid;
    }

    public void setVchan_duid(String vchan_duid) {
        this.vchan_duid = vchan_duid;
    }

    public String getVchan_refid() {
        return vchan_refid;
    }

    public void setVchan_refid(String vchan_refid) {
        this.vchan_refid = vchan_refid;
    }

    public List getVideo() {
        return video;
    }

    public void setVideo(List video) {
        this.video = video;
    }

    public String getTest_pic_file() {
        return test_pic_file;
    }

    public void setTest_pic_file(String test_pic_file) {
        this.test_pic_file = test_pic_file;
    }

    public String getTest_frame_no() {
        return test_frame_no;
    }

    public void setTest_frame_no(String test_frame_no) {
        this.test_frame_no = test_frame_no;
    }

    public String getSubtask_id() {
        return subtask_id;
    }

    public void setSubtask_id(String subtask_id) {
        this.subtask_id = subtask_id;
    }

    public String getSource_type() {
        return source_type;
    }

    public void setSource_type(String source_type) {
        this.source_type = source_type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getSimilarity() {
        return similarity;
    }

    public void setSimilarity(Double similarity) {
        this.similarity = similarity;
    }

    @Override
    public int compareTo(TrafficMongoModel o) {
        return -1 * this.getSimilarity().compareTo(o.getSimilarity());
    }

    public String getUnid() {
        return unid;
    }

    public void setUnid(String unid) {
        this.unid = unid;
    }

    @Override
    public String toString() {
        return "TrafficMongoModel{" +
                "id='" + id + '\'' +
                ", task_type='" + task_type + '\'' +
                ", task_id='" + task_id + '\'' +
                ", event_type='" + event_type + '\'' +
                ", event_refid='" + event_refid + '\'' +
                ", event_dt='" + event_dt + '\'' +
                ", dev_unid='" + dev_unid + '\'' +
                ", aux_dev_info=" + aux_dev_info +
                ", event_data=" + event_data +
                ", pics=" + pics +
                ", event_cate='" + event_cate + '\'' +
                ", vdev_unid='" + vdev_unid + '\'' +
                ", vchan_duid='" + vchan_duid + '\'' +
                ", vchan_refid='" + vchan_refid + '\'' +
                ", video=" + video +
                ", test_pic_file='" + test_pic_file + '\'' +
                ", test_frame_no='" + test_frame_no + '\'' +
                ", subtask_id='" + subtask_id + '\'' +
                ", source_type='" + source_type + '\'' +
                ", similarity=" + similarity +
                '}';
    }
}