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 aBatchby its key.inthandleBatch(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-ExportFormatof the files- Returns:
- key of the batch created
-
get
Returns aBatchby its key.- Parameters:
key- key of the batch- Returns:
Batch
-