See http://www.hammerlab.org/spark-bam/motivation#case-study-counting-on-ooms, and https://github.com/HadoopGenomics/Hadoop-BAM/issues/169#issuecomment-352317989. It should not be necessary to catch OutOfMemoryError for correct operation.
See http://www.hammerlab.org/spark-bam/motivation#case-study-counting-on-ooms, and #169 (comment).
It should not be necessary to catch OutOfMemoryError for correct operation.