BATCH_SIZE
BATCH_SIZE = 100
Records written between two flushes while a file is stored.
Class RecordManager Stores what any of the registered parsers read, whatever its format, as ParsedRecord documents.
store(string $sDbFormat, array $aLines, ?\Amelaye\BioPHP\Domain\Database\Entity\Collection $oCollection = null) : \Amelaye\BioPHP\Domain\Database\Entity\ParsedRecord
Parses the lines of one record and stores what was read. A record already stored under the same format and identifier is updated rather than duplicated.
| string | $sDbFormat | Database format, e.g. "GENBANK" |
| array | $aLines | The lines of the record |
| ?\Amelaye\BioPHP\Domain\Database\Entity\Collection | $oCollection | The collection the record belongs to |
storeFile(string $sDbName, string $sDbFormat, string ...$aDataFiles) : int
Parses every record of one or several data files and stores them in a collection.
| string | $sDbName | Name of the collection, created when it does not exist |
| string | $sDbFormat | Database format, e.g. "GENBANK" |
| string | $aDataFiles variadic | Files to parse |
Number of records stored
upsert(array $aPending, string $sDbFormat, string $sEntryId, array $aLines, \Amelaye\BioPHP\Domain\Database\Entity\Collection|null $oCollection) : \Amelaye\BioPHP\Domain\Database\Entity\ParsedRecord
Parses a record and writes it, or rewrites the one already stored under the same identifier.
| array | $aPending | Records persisted but not flushed yet, by format and identifier |
| string | $sDbFormat | |
| string | $sEntryId | |
| array | $aLines | |
| \Amelaye\BioPHP\Domain\Database\Entity\Collection|null | $oCollection |