Modules§
Macros§
Structs§
- Represents a temporary bucket of barcodes whose records will be written together and then collated later in memory.
Functions§
- Given a BufReader
<T>
from which to read a set of records that should reside in the same collated bucket, this function will collate the records by cell barcode, filling them into a chunk of memory exactly as they will reside on disk. Ifcompress
is true the collated chunk will be compressed, and then the result will be written to the output guarded byowriter
. - Read an input chunk from
reader
and write the resulting records to the corresponding in-memory bufferslocal_buffers
. As soon as any buffer reachesflush_limit
, flush the buffer by writing it to theoutput_cache
.