Function libradicl::collate_temporary_bucket_twopass [−][src]
pub fn collate_temporary_bucket_twopass<T: Read + Seek, U: Write>(
reader: &mut BufReader<T>,
bct: &RadIntId,
umit: &RadIntId,
nrec: u32,
owriter: &Mutex<U>,
compress: bool,
cb_byte_map: &mut HashMap<u64, TempCellInfo, RandomState>
) -> usize
Expand description
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. If compress
is true
the collated chunk will be compressed, and then the result will be
written to the output guarded by owriter
.