renaming MergingIterator to RODMergingIterator as it is more appropriate for this specialized implementation
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4461 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
bffb8bb01f
commit
77dddd0afa
|
|
@ -32,7 +32,7 @@ import org.broadinstitute.sting.utils.GenomeLoc;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
public class MergingIterator implements Iterator<RODRecordList>, Iterable<RODRecordList> {
|
public class RODMergingIterator implements Iterator<RODRecordList>, Iterable<RODRecordList> {
|
||||||
PriorityQueue<Element> queue = new PriorityQueue<Element>();
|
PriorityQueue<Element> queue = new PriorityQueue<Element>();
|
||||||
|
|
||||||
private class Element implements Comparable<Element> {
|
private class Element implements Comparable<Element> {
|
||||||
|
|
@ -45,7 +45,7 @@ public class MergingIterator implements Iterator<RODRecordList>, Iterable<RODRec
|
||||||
if ( ! it.hasNext() ) throw new ReviewedStingException("Iterator is empty");
|
if ( ! it.hasNext() ) throw new ReviewedStingException("Iterator is empty");
|
||||||
update();
|
update();
|
||||||
} else {
|
} else {
|
||||||
throw new ReviewedStingException("Iterator passed to MergingIterator is not LocationAwareSeekableRODIterator");
|
throw new ReviewedStingException("Iterator passed to RODMergingIterator is not LocationAwareSeekableRODIterator");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,15 +76,15 @@ public class MergingIterator implements Iterator<RODRecordList>, Iterable<RODRec
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MergingIterator() {
|
public RODMergingIterator() {
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MergingIterator(Iterator<RODRecordList> it) {
|
public RODMergingIterator(Iterator<RODRecordList> it) {
|
||||||
add(it);
|
add(it);
|
||||||
}
|
}
|
||||||
|
|
||||||
public MergingIterator(Collection<Iterator<RODRecordList>> its) {
|
public RODMergingIterator(Collection<Iterator<RODRecordList>> its) {
|
||||||
for ( Iterator<RODRecordList> it : its ) {
|
for ( Iterator<RODRecordList> it : its ) {
|
||||||
add(it);
|
add(it);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue