All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.log.flink.data.RawLog Maven / Gradle / Ivy

package com.aliyun.openservices.log.flink.data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class RawLog implements Serializable {
    private int time;
    private Map contents;
    private Map tags;

    public RawLog() {
        contents = new HashMap();
        tags = new HashMap();
    }

    public int getTime() {
        return time;
    }

    public Map getContents() {
        return contents;
    }

    public Map getTags() {
        return tags;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public void setContents(Map contents) {
        this.contents = contents;
    }

    public void addContent(String key, String value) {
        contents.put(key, value);
    }

    public void setTags(Map tags) {
        this.tags = tags;
    }

    public void addTags(String key, String value) {
        tags.put(key, value);
    }

    @Override
    public String toString() {
        return "RawLog{" +
                "time=" + time +
                ", contents=" + contents +
                ", tags=" + tags +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy