KEY - KEY + reference sequence index are used to identify the record being stored or retrieved.
REC - The type of record being retrieved.
All Implemented Interfaces:
public class CoordinateSortedPairInfoMap<KEY,REC>
Holds info about a mate pair for use when processing a coordinate sorted file. When one read of a pair is encountered,
the caller should add a record to this map. When the other read of a pair is encountered, the record should be removed.
This class assumes that reads will be processed in order of reference sequence index. When the map is queried for
a record for a given reference sequence index, all the records for that sequence are loaded from temp file into RAM, so there
must be sufficient RAM to hold all the records for one reference sequence. If the records are not processed in
reference sequence order, loading and unloading of records will cause performance to be terrible.
Creates an iterator over all elements in map, in arbitrary order. Elements may not be added
or removed from map when iteration is in progress, nor may a second iteration be started.
Iterator must be closed in order to allow normal access to the map.
iterator in interface java.lang.Iterable<java.util.Map.Entry<KEY,REC>>