Search in sources :

Example 1 with RemoveImportJob

use of com.bakdata.conquery.models.messages.namespaces.specific.RemoveImportJob in project conquery by bakdata.

the class AdminDatasetProcessor method deleteImport.

/**
 * Deletes an import.
 */
public synchronized void deleteImport(Import imp) {
    final Namespace namespace = datasetRegistry.get(imp.getTable().getDataset().getId());
    namespace.getStorage().removeImport(imp.getId());
    namespace.sendToAll(new RemoveImportJob(imp));
    // Remove bucket assignments for consistency report
    namespace.removeBucketAssignmentsForImportFormWorkers(imp);
}
Also used : RemoveImportJob(com.bakdata.conquery.models.messages.namespaces.specific.RemoveImportJob) Namespace(com.bakdata.conquery.models.worker.Namespace)

Aggregations

RemoveImportJob (com.bakdata.conquery.models.messages.namespaces.specific.RemoveImportJob)1 Namespace (com.bakdata.conquery.models.worker.Namespace)1