List of usage examples for org.apache.hadoop.io WritableComparator readFloat
public static float readFloat(byte[] bytes, int start)
From source file:org.apache.mrql.MR_float.java
License:Apache License
final public static int compare(byte[] x, int xs, int xl, byte[] y, int ys, int yl, int[] size) { size[0] = (Float.SIZE >> 3) + 1; float v = WritableComparator.readFloat(x, xs) - WritableComparator.readFloat(y, ys); return (v == 0) ? 0 : ((v > 0) ? 1 : -1); }