@Override
    protected int onCmp(ResultNode rhs) {
        if (classId != rhs.getClassId()) {
            return (classId - rhs.getClassId());
        }
        StringBucketResultNode b = (StringBucketResultNode)rhs;
        int diff = from.compareTo(b.from);
        return (diff == 0) ? to.compareTo(b.to) : diff;
    }
Obtain the bucket end

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