public class SAMRecordPrefetchingIterator extends java.lang.Object implements CloseableIterator<SAMRecord>
Note that this implementation is not synchronized. If multiple threads access an instance concurrently, it must be synchronized externally.
| Constructor and Description |
|---|
SAMRecordPrefetchingIterator(CloseableIterator<SAMRecord> iterator,
int basePrefetchLimit)
Creates a new iterator that traverses the given iterator on a background thread
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Should be implemented to close/release any underlying resources.
|
boolean |
hasNext() |
SAMRecord |
next() |
protected int |
readsInQueue() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstream, toListpublic SAMRecordPrefetchingIterator(CloseableIterator<SAMRecord> iterator, int basePrefetchLimit)
iterator - the iterator to traversebasePrefetchLimit - the number of bases to prefetchpublic void close()
CloseableIteratorclose in interface CloseableIterator<SAMRecord>close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic boolean hasNext()
hasNext in interface java.util.Iterator<SAMRecord>protected int readsInQueue()