Search in sources :

Example 1 with ImportJob

use of com.bakdata.conquery.models.jobs.ImportJob in project conquery by bakdata.

the class AdminDatasetProcessor method updateImport.

/**
 * Reads an Import partially Importing it if it is present, then submitting it for full import [Update of an import].
 */
@SneakyThrows
public void updateImport(Namespace namespace, InputStream inputStream) throws IOException {
    ImportJob job = ImportJob.createOrUpdate(namespace, inputStream, config.getCluster().getEntityBucketSize(), sharedDictionaryLocks, config, true);
    namespace.getJobManager().addSlowJob(job);
}
Also used : RemoveImportJob(com.bakdata.conquery.models.messages.namespaces.specific.RemoveImportJob) ImportJob(com.bakdata.conquery.models.jobs.ImportJob) SneakyThrows(lombok.SneakyThrows)

Example 2 with ImportJob

use of com.bakdata.conquery.models.jobs.ImportJob in project conquery by bakdata.

the class AdminDatasetProcessor method addImport.

/**
 * Reads an Import partially Importing it if not yet present, then submitting it for full import.
 */
@SneakyThrows
public void addImport(Namespace namespace, InputStream inputStream) throws IOException {
    ImportJob job = ImportJob.createOrUpdate(namespace, inputStream, config.getCluster().getEntityBucketSize(), sharedDictionaryLocks, config, false);
    namespace.getJobManager().addSlowJob(job);
}
Also used : RemoveImportJob(com.bakdata.conquery.models.messages.namespaces.specific.RemoveImportJob) ImportJob(com.bakdata.conquery.models.jobs.ImportJob) SneakyThrows(lombok.SneakyThrows)

Aggregations

ImportJob (com.bakdata.conquery.models.jobs.ImportJob)2 RemoveImportJob (com.bakdata.conquery.models.messages.namespaces.specific.RemoveImportJob)2 SneakyThrows (lombok.SneakyThrows)2