@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(StandardTypes.TIMESTAMP) long left, @IsNull boolean leftNull, @SqlType(StandardTypes.TIMESTAMP) long right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(StandardTypes.TINYINT) long left, @IsNull boolean leftNull, @SqlType(StandardTypes.TINYINT) long right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(StandardTypes.SMALLINT) long left, @IsNull boolean leftNull, @SqlType(StandardTypes.SMALLINT) long right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(StandardTypes.TIMESTAMP_WITH_TIME_ZONE) long left, @IsNull boolean leftNull, @SqlType(StandardTypes.TIMESTAMP_WITH_TIME_ZONE) long right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(StandardTypes.TIME) long left, @IsNull boolean leftNull, @SqlType(StandardTypes.TIME) long right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(StandardTypes.BIGINT) long left, @IsNull boolean leftNull, @SqlType(StandardTypes.BIGINT) long right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(StandardTypes.IPADDRESS) Slice left, @IsNull boolean leftNull, @SqlType(StandardTypes.IPADDRESS) Slice right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@SqlType(StandardTypes.BOOLEAN) public static boolean isDistinctFrom( @SqlType(ColorType.NAME) long left, @IsNull boolean leftNull, @SqlType(ColorType.NAME) long right, @IsNull boolean rightNull) { if (leftNull != rightNull) { return true; } if (leftNull) { return false; } return notEqual(left, right); }
@LiteralParameters({"p", "s"}) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType("decimal(p, s)") Slice value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.BIGINT) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.TINYINT) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(ColorType.NAME) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.BOOLEAN) boolean value, @IsNull boolean isNull) { return isNull; }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.INTERVAL_DAY_TO_SECOND) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.TIME_WITH_TIME_ZONE) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.SMALLINT) long value, @IsNull boolean isNull) { return isNull; }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.REAL) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.INTERVAL_YEAR_TO_MONTH) long value, @IsNull boolean isNull) { return isNull; } }
@ScalarOperator(INDETERMINATE) @SqlType(StandardTypes.BOOLEAN) public static boolean indeterminate(@SqlType(StandardTypes.TIMESTAMP_WITH_TIME_ZONE) long value, @IsNull boolean isNull) { return isNull; } }