public static class CRAMFileReader.IntervalIterator extends java.lang.Object implements SAMRecordIterator
| Constructor and Description |
|---|
IntervalIterator(CloseableIterator<SAMRecord> delegate,
QueryInterval interval) |
IntervalIterator(CloseableIterator<SAMRecord> delegate,
QueryInterval interval,
boolean overlap) |
| Modifier and Type | Method and Description |
|---|---|
SAMRecordIterator |
assertSorted(SAMFileHeader.SortOrder sortOrder)
Establishes that records returned by this iterator are expected to
be in the specified sort order.
|
void |
close()
Should be implemented to close/release any underlying resources.
|
boolean |
hasNext() |
SAMRecord |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstream, toListpublic IntervalIterator(CloseableIterator<SAMRecord> delegate, QueryInterval interval)
public IntervalIterator(CloseableIterator<SAMRecord> delegate, QueryInterval interval, boolean overlap)
public SAMRecordIterator assertSorted(SAMFileHeader.SortOrder sortOrder)
SAMRecordIteratorassertSorted in interface SAMRecordIteratorsortOrder - The order in which records are expected to be returnedpublic 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>public void remove()
remove in interface java.util.Iterator<SAMRecord>