KEY
- KEY + reference sequence index are used to identify the record being stored or retrieved.REC
- The type of record being retrieved.public class CoordinateSortedPairInfoMap<KEY,REC>
extends java.lang.Object
implements java.lang.Iterable<java.util.Map.Entry<KEY,REC>>
Modifier and Type | Class and Description |
---|---|
static interface |
CoordinateSortedPairInfoMap.Codec<KEY,REC>
Client must implement this class, which defines the way in which records are written to and
read from file.
|
Constructor and Description |
---|
CoordinateSortedPairInfoMap(int maxOpenFiles,
CoordinateSortedPairInfoMap.Codec<KEY,REC> elementCodec) |
Modifier and Type | Method and Description |
---|---|
CloseableIterator<java.util.Map.Entry<KEY,REC>> |
iterator()
Creates an iterator over all elements in map, in arbitrary order.
|
void |
put(int sequenceIndex,
KEY key,
REC record)
Store the record with the given sequence index and key.
|
REC |
remove(int sequenceIndex,
KEY key) |
int |
size() |
int |
sizeInRam() |
public CoordinateSortedPairInfoMap(int maxOpenFiles, CoordinateSortedPairInfoMap.Codec<KEY,REC> elementCodec)
public REC remove(int sequenceIndex, KEY key)
sequenceIndex
- key
- public void put(int sequenceIndex, KEY key, REC record)
sequenceIndex
- key
- record
- public int size()
public int sizeInRam()
public CloseableIterator<java.util.Map.Entry<KEY,REC>> iterator()