package com.gyee.frame.util.golden.timeseries;

import lombok.Data;

@Data
public class BaseTsQuery implements TsQuery {

    private final TsPoint tsPoint;
    private final long startTs;
    private final long endTs;
    private final int interval;
    private final int limit;
    private final Interpolation interpolation;

    public BaseTsQuery(TsPoint tsPoint, long startTs, long endTs, int interval, int limit, Interpolation interpolation) {
        this.tsPoint = tsPoint;
        this.startTs = startTs;
        this.endTs = endTs;
        this.interval = interval;
        this.limit = limit;
        this.interpolation = interpolation;
    }

    public BaseTsQuery(TsPoint tsPoint, long startTs, long endTs) {
        this(tsPoint, startTs, endTs, 1, 1, Interpolation.RAW);
    }

}
