This method gets the nextKeyValue for our RecordReader, but filters by only returning records within a specified ReferenceRegion.
This method gets the nextKeyValue for our RecordReader, but filters by only returning records within a specified ReferenceRegion. This function is tail recursive to avoid stack overflow when predicate data can be sparse.
Scala implementation of BAMRecordReader, but with nextKeyValue() that filters by ReferenceRegion