Class ComparisonFunctions

java.lang.Object
com.couchbase.client.java.query.dsl.functions.ComparisonFunctions

@Experimental
@Public
public class ComparisonFunctions
extends Object
DSL for N1QL functions in the Comparison category. Comparison functions determine the greatest or least value from a set of values.
Since:
2.2
Author:
Simon Baslé
  • Method Details

    • greatest

      public static Expression greatest​(Expression e1, Expression e2, Expression... otherExpressions)
      Returned expression results in the largest non-NULL, non-MISSING value if the values are of the same type, otherwise NULL. At least two expressions are necessary.
    • least

      public static Expression least​(Expression e1, Expression e2, Expression... otherExpressions)
      Returned expression results in the smallest non-NULL, non-MISSING value if the values are of the same type, otherwise NULL. At least two expressions are necessary.