Function that associates a time window with each element of a sequence. The resulting sequence can then be grouped by the time windows for further processing
3 people like thisPosted: 4 years ago by Faisal Waris
The example uses Seq.splitBy and Seq.tryHeadTail twice to split the input file in two and then into several pieces collecting the output file names in the first section and the content in the subsequent pieces It can efficiently split a huge 2.2GB file into several subfiles without having to rescan the file or cache in memory any portions of the file apart from the current line.
5 people like thisPosted: 11 months ago by amieres