htsjdk.samtools
Class SecondaryOrSupplementarySkippingIterator

java.lang.Object
  extended by htsjdk.samtools.SecondaryOrSupplementarySkippingIterator

public class SecondaryOrSupplementarySkippingIterator
extends java.lang.Object

Wrapper around SAMRecord iterator that skips over secondary and supplementary elements. This iterator conflates a filtering iterator and a peekable iterator. It would be cleaner to handle those concerns separately. This class should be viewed as a replacement for NotPrimarySkippingIterator, in that we did not want to change the functionality of NPSI to no longer match its name


Constructor Summary
SecondaryOrSupplementarySkippingIterator(CloseableIterator<SAMRecord> underlyingIt)
           
 
Method Summary
 boolean advance()
           
 SAMRecord getCurrent()
           
 boolean hasCurrent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecondaryOrSupplementarySkippingIterator

public SecondaryOrSupplementarySkippingIterator(CloseableIterator<SAMRecord> underlyingIt)
Method Detail

hasCurrent

public boolean hasCurrent()

getCurrent

public SAMRecord getCurrent()

advance

public boolean advance()