public static boolean isNeq(GenericUDF fn) {
    return fn instanceof GenericUDFOPNotEqual;
  }
Returns whether the fn is an exact non-equality comparison.
ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java