git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@239 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2009-03-31 15:51:59 +00:00
parent d37d81822d
commit 8d601a6a42
1 changed files with 4 additions and 4 deletions

View File

@ -23,12 +23,12 @@ public class DepthOfCoverageWalker extends LocusWalker<Integer, Pair<Long, Long>
return context.getReads().size();
}
public Pair<Long, Long> reduceInit() { return new Pair<Long, Long>((long)0,(long)0); }
public Pair<Long, Long> reduceInit() { return new Pair(0l,0l); }
public Pair<Long, Long> reduce(Integer value, Pair<Long, Long> sum) {
long left = new Long(value.longValue() + sum.getFirst().longValue());
long right = new Long(sum.getSecond().longValue() + 1);
return new Pair<Long, Long>(left, right);
long left = value.longValue() + sum.getFirst();
long right = sum.getSecond() + 1l;
return new Pair(left, right);
}
public void onTraversalDone(Pair<Long, Long> result) {