package ru.yandex.webmaster3.worker.searchquery;

import lombok.Setter;

import ru.yandex.webmaster3.core.worker.task.PeriodicTaskType;
import ru.yandex.webmaster3.storage.searchquery.importing.QueriesImportService;
import ru.yandex.webmaster3.storage.ytimport.YtClickhouseDataLoad;
import ru.yandex.webmaster3.worker.ytimport.AbstractYtClickhouseDataLoadTask;

/**
 * Created by Oleg Bazdyrev on 18/05/2017.
 */
public abstract class AbstractSearchQueryImportTask extends AbstractYtClickhouseDataLoadTask {

    @Setter
    protected QueriesImportService queriesImportService;
    @Setter
    private PeriodicTaskType type;

    // для доступности из теста
    @Override
    protected YtClickhouseDataLoad init(YtClickhouseDataLoad latestImport) throws Exception {
        return super.init(latestImport);
    }

    @Override
    public PeriodicTaskType getType() {
        return type;
    }
}
