Package org.gbif.api.service.collections
Interface BatchService
-
public interface BatchService
Defines the service to work with batches.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Batch
get(int key)
Returns aBatch
by its key.int
handleBatch(byte[] entitiesFile, byte[] contactsFile, ExportFormat format)
Handles a batch.
-
-
-
Method Detail
-
handleBatch
int handleBatch(byte[] entitiesFile, byte[] contactsFile, ExportFormat format)
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
-
-