Package org.gbif.api.service.collections
Interface BatchService
public interface BatchService
Defines the service to work with batches.
-
Method Summary
Modifier and TypeMethodDescriptionget
(int key) Returns aBatch
by its key.int
handleBatch
(byte[] entitiesFile, byte[] contactsFile, ExportFormat format) Handles a batch.
-
Method Details
-
handleBatch
Handles a batch. The batch can be to either do an initial import or to update existing data.- Parameters:
entitiesFile
- file with the entities to import or updatecontactsFile
- file with the contacts to import or updateformat
-ExportFormat
of the files- Returns:
- key of the batch created
-
get
Returns aBatch
by its key.- Parameters:
key
- key of the batch- Returns:
Batch
-