equals should just return the integer argument – any other non-zero return should raise an exception.
search_near is more complex, it also has WT_NOTFOUND.