commit | 1d66da3ecec3271751a28a942c5c6fd0cae09802 | [log] [tgz] |
---|---|---|
author | vinayakb <vinayakb@123451ca-8445-de46-9d55-352943316053> | Sun Dec 19 23:12:09 2010 +0000 |
committer | vinayakb <vinayakb@123451ca-8445-de46-9d55-352943316053> | Sun Dec 19 23:12:09 2010 +0000 |
tree | 0ce78f0bb40e96d1f264a0525eeac6108104b13f | |
parent | e5086548ee797724ffcf5320fa50b381d63a67a0 [diff] |
Minor change in comparison loop git-svn-id: https://hyracks.googlecode.com/svn/trunk/hyracks@256 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java b/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java index 8a34e45..0556516 100644 --- a/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java +++ b/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/FrameSorter.java
@@ -237,7 +237,7 @@ byte[] b2 = buf2.array(); fta1.reset(buf1); fta2.reset(buf2); - for (int f = 0; f < sortFields.length; ++f) { + for (int f = 0; f < comparators.length; ++f) { int fIdx = sortFields[f]; int f1Start = fIdx == 0 ? 0 : buf1.getShort(j1 + (fIdx - 1) * 2); int f1End = buf1.getShort(j1 + fIdx * 2); @@ -254,4 +254,4 @@ } return 0; } -} \ No newline at end of file +}