/** Returns true if there is another record available post-downsampling, false otherwise. */ @Override public boolean hasNext() { // The underlying iterator is always left at the next return-able read, so if it has a next read, so do we return this.underlyingIterator.hasNext(); }
/** Returns true if there is another record available post-downsampling, false otherwise. */ @Override public boolean hasNext() { // The underlying iterator is always left at the next return-able read, so if it has a next read, so do we return this.underlyingIterator.hasNext(); }
public boolean hasNext() { return wrappedIterator.hasNext(); }
public boolean hasNext() { return filePointers.hasNext(); }
@Override public boolean hasNext() { return (!records.isEmpty() || super.hasNext()); }
@Override public boolean hasNext() { return (!records.isEmpty() || super.hasNext()); }
@Override public boolean hasNext() { // fast succeed if (null != nextRecord) return true; // We would need to get another record, so check if we can either a record read from the input to the mark queue, or we have more that we should return. // There should be at no time records in the mark queue that are not tracked in the output buffer. return (backingIterator.hasNext() || !outputBuffer.isEmpty()); }
public PE next() { PeekableIterator<PE> currentIterator = perSampleIterators.remove(); PE current = currentIterator.next(); if(currentIterator.hasNext()) perSampleIterators.add(currentIterator); return current; }
@Override public boolean hasNext() { // fast succeed if (null != nextRecord) return true; // We would need to get another record, so check if we can either a record read from the input to the mark queue, or we have more that we should return. // There should be at no time records in the mark queue that are not tracked in the output buffer. return (backingIterator.hasNext() || !outputBuffer.isEmpty()); }
private void advance() { while (peekIterator.hasNext()) { theNext = nextMaybeEmpty(); if (theNext.numHits() > 0) return; } theNext = null; }
private void advance() { while (peekIterator.hasNext()) { theNext = nextMaybeEmpty(); if (theNext.numHits() > 0) return; } theNext = null; }
/** * Resets the SAM reader position to its original state. */ private void initialize() { this.positionIterator = new PeekableIterator<GATKChunk>(positions.iterator()); if(positionIterator.hasNext()) nextBlockAddress = positionIterator.peek().getBlockStart(); else nextBlockAddress = -1; }
/** * Advances the underlying, peekable, iterator until the next records is one that is to be emitted. * @return true if there is at least one emittable record ready for emission, false otherwise */ private boolean advanceToNextAcceptedRead() { while (this.underlyingIterator.hasNext() && this.hasher.hashUnencodedChars(this.underlyingIterator.peek().getReadName()) > this.maxHashValue) { this.underlyingIterator.next(); recordDiscardedRecord(); } return this.underlyingIterator.hasNext(); }
/** * Advances the underlying, peekable, iterator until the next records is one that is to be emitted. * @return true if there is at least one emittable record ready for emission, false otherwise */ private boolean advanceToNextAcceptedRead() { while (this.underlyingIterator.hasNext() && this.hasher.hashUnencodedChars(this.underlyingIterator.peek().getReadName()) > this.maxHashValue) { this.underlyingIterator.next(); recordDiscardedRecord(); } return this.underlyingIterator.hasNext(); }
public SAMRecord next() { if (read1Iterator.hasNext()) { if (read2Iterator.hasNext()) { return (read1Iterator.peek().getReadName().compareTo(read2Iterator.peek().getReadName()) <= 0) ? setPairFlags(read1Iterator.next(), true) : setPairFlags(read2Iterator.next(), false); } else { return setPairFlags(read1Iterator.next(), true); } } else { return setPairFlags(read2Iterator.next(), false); } }
public SAMRecord next() { if (read1Iterator.hasNext()) { if (read2Iterator.hasNext()) { return (read1Iterator.peek().getReadName().compareTo(read2Iterator.peek().getReadName()) <= 0) ? setPairFlags(read1Iterator.next(), true) : setPairFlags(read2Iterator.next(), false); } else { return setPairFlags(read1Iterator.next(), true); } } else { return setPairFlags(read2Iterator.next(), false); } }