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);
}
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);
}
Aggregations