ReadEndsForMarkDuplicatesMap
public class DiskBasedReadEndsForMarkDuplicatesMap extends Object implements ReadEndsForMarkDuplicatesMap
Constructor | Description |
---|---|
DiskBasedReadEndsForMarkDuplicatesMap(int maxOpenFiles,
ReadEndsForMarkDuplicatesCodec readEndsForMarkDuplicatesCodec) |
Modifier and Type | Method | Description |
---|---|---|
void |
put(int mateSequenceIndex,
String key,
ReadEndsForMarkDuplicates readEnds) |
Store the element in the map with the given key.
|
ReadEndsForMarkDuplicates |
remove(int mateSequenceIndex,
String key) |
Remove element with given key from the map.
|
int |
size() |
|
int |
sizeInRam() |
public DiskBasedReadEndsForMarkDuplicatesMap(int maxOpenFiles, ReadEndsForMarkDuplicatesCodec readEndsForMarkDuplicatesCodec)
public ReadEndsForMarkDuplicates remove(int mateSequenceIndex, String key)
ReadEndsForMarkDuplicatesMap
remove
in interface ReadEndsForMarkDuplicatesMap
mateSequenceIndex
- must agree with the value used when the object was put into the mapkey
- typically, concatenation of read group ID and read namepublic void put(int mateSequenceIndex, String key, ReadEndsForMarkDuplicates readEnds)
ReadEndsForMarkDuplicatesMap
put
in interface ReadEndsForMarkDuplicatesMap
mateSequenceIndex
- use to optimize storage & retrieval. The same value must be used when trying
to remove this element. It is not valid to store the same key with two different mateSequenceIndexes.key
- typically, concatenation of read group ID and read namereadEnds
- the object to be storedpublic int size()
size
in interface ReadEndsForMarkDuplicatesMap
public int sizeInRam()
sizeInRam
in interface ReadEndsForMarkDuplicatesMap