throw new java.io.IOException("Double is exactly 8 bytes. Provided buffer is smaller."); double d1 = org.apache.hadoop.record.Utils.readDouble(b1, s1); double d2 = org.apache.hadoop.record.Utils.readDouble(b2, s2); if (d1 != d2) { return ((d1-d2) < 0) ? -1 : 0;