@Override
    protected int onCmp(ResultNode rhs) {
        if (classId != rhs.getClassId()) {
            return (classId - rhs.getClassId());
        }
        FloatBucketResultNode b = (FloatBucketResultNode)rhs;
        double f1 = from;
        double f2 = b.from;
        if (f1 < f2) {
            return -1;
        } else if (f1 > f2) {
            return 1;
        } else {
            double t1 = to;
            double t2 = b.to;
            if (t1 < t2) {
                return -1;
            } else if (t1 > t2) {
                return 1;
            }
        }
        return 0;
    }
Obtain the bucket end

@return bucket end
searchlib/src/main/java/com/yahoo/searchlib/expression/FloatBucketResultNode.java