public class DiskBasedReadEndsForMarkDuplicatesMap extends java.lang.Object implements ReadEndsForMarkDuplicatesMap
Constructor and Description |
---|
DiskBasedReadEndsForMarkDuplicatesMap(int maxOpenFiles,
ReadEndsForMarkDuplicatesCodec readEndsForMarkDuplicatesCodec) |
Modifier and Type | Method and Description |
---|---|
void |
put(int mateSequenceIndex,
java.lang.String key,
ReadEndsForMarkDuplicates readEnds)
Store the element in the map with the given key.
|
ReadEndsForMarkDuplicates |
remove(int mateSequenceIndex,
java.lang.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, java.lang.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, java.lang.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