public class ReadCachingIterator extends java.lang.Object implements java.util.Iterator<GATKRead>
consumeCachedReads()
is not called periodically by the client, memory
use will grow arbitrarily until the heap is exhausted!Constructor and Description |
---|
ReadCachingIterator(java.util.Iterator<GATKRead> wrappedIter) |
Modifier and Type | Method and Description |
---|---|
java.util.List<GATKRead> |
consumeCachedReads() |
boolean |
hasNext() |
GATKRead |
next() |
void |
remove() |
public ReadCachingIterator(java.util.Iterator<GATKRead> wrappedIter)
wrappedIter
- GATKRead iterator to wrappublic boolean hasNext()
hasNext
in interface java.util.Iterator<GATKRead>
public java.util.List<GATKRead> consumeCachedReads()
public void remove()
remove
in interface java.util.Iterator<GATKRead>