@InterfaceStability.Experimental @InterfaceAudience.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.
Constructor and Description |
---|
ComparisonFunctions() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
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.
Copyright © 2014 Couchbase, Inc.