package cn.ibizlab.core.extensions.cql;

import com.datastax.driver.core.LocalDate;
import com.datastax.driver.mapping.annotations.ClusteringColumn;
import com.datastax.driver.mapping.annotations.PartitionKey;
import com.datastax.driver.mapping.annotations.Table;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp; 
import java.util.Date; 

/**
 * 实体[RUExecResult] 数据对象
 */
@Table(name = "ru_execresult2")
@Data
public class ExecResult2 implements Serializable {
    @PartitionKey
    private String ruleid;
    @PartitionKey(1)
    private String keyvaluefield; 
    @ClusteringColumn
    private String dimfield;
    @ClusteringColumn(1)
    private String domainsfield;
    @ClusteringColumn(2)
    private LocalDate timefield;

    public String debugInfo(){
        return String.format("%1$s,%2$s,%3$s,%4$s,%5$s", keyvaluefield,ruleid,dimfield,timefield,domainsfield);
    }
}