public class Expression extends Object
Represents a N1QL Expression.
Modifier and Type  Method and Description 

Expression 
add(Expression expression)
Arithmetic addition between current and given expression.

Expression 
add(Number b)
Arithmetic addition between current expression and a given number.

Expression 
add(String expression)
Arithmetic addition between current and given expression.

Expression 
and(boolean right)
ANDcombines two expressions.

Expression 
and(double right)
ANDcombines two expressions.

Expression 
and(Expression right)
ANDcombines two expressions.

Expression 
and(float right)
ANDcombines two expressions.

Expression 
and(int right)
ANDcombines two expressions.

Expression 
and(JsonArray right)
ANDcombines two expressions.

Expression 
and(JsonObject right)
ANDcombines two expressions.

Expression 
and(long right)
ANDcombines two expressions.

Expression 
and(String right)
ANDcombines two expressions.

Expression 
as(Expression alias)
Adds a AS clause between the current and the given expression.

Expression 
as(String alias)
Adds a AS clause between the current and the given expression.

Expression 
between(boolean right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(double right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(Expression right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(float right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(int right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(JsonArray right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(JsonObject right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(long right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
between(String right)
Adds a BETWEEN clause between the current and the given expression.

Expression 
concat(boolean right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(double right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(Expression right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(float right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(int right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(JsonArray right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(JsonObject right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(long right)
Combines two expressions with the concatenation operator (“”).

Expression 
concat(String right)
Combines two expressions with the concatenation operator (“”).

Expression 
divide(Expression expression)
Arithmetic division between current and given expression.

Expression 
divide(Number b)
Arithmetic division between current expression and a given number.

Expression 
divide(String expression)
Arithmetic division between current and given expression.

Expression 
eq(boolean right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(double right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(Expression right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(float right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(int right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(JsonArray right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(JsonObject right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(long right)
Combines two expressions with the equals operator (“=”).

Expression 
eq(String right)
Combines two expressions with the equals operator (“=”).

Expression 
exists()
Prefixes the current expression with the EXISTS clause.

static Expression 
FALSE()
Returns an expression representing boolean FALSE.

Expression 
gt(boolean right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(double right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(Expression right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(float right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(int right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(JsonArray right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(JsonObject right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(long right)
Combines two expressions with the greater than operator (“>”).

Expression 
gt(String right)
Combines two expressions with the greater than operator (“>”).

Expression 
gte(boolean right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(double right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(Expression right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(float right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(int right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(JsonArray right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(JsonObject right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(long right)
Combines two expressions with the greater or equals than operator (“>=”).

Expression 
gte(String right)
Combines two expressions with the greater or equals than operator (“>=”).

static Expression 
i(String... identifiers)
An identifier or list of identifiers escaped using backquotes `.

Expression 
in(boolean right)
Adds a IN clause between the current and the given expression.

Expression 
in(double right)
Adds a IN clause between the current and the given expression.

Expression 
in(Expression right)
Adds a IN clause between the current and the given expression.

Expression 
in(float right)
Adds a IN clause between the current and the given expression.

Expression 
in(int right)
Adds a IN clause between the current and the given expression.

Expression 
in(JsonArray right)
Adds a IN clause between the current and the given expression.

Expression 
in(JsonObject right)
Adds a IN clause between the current and the given expression.

Expression 
in(long right)
Adds a IN clause between the current and the given expression.

Expression 
in(String right)
Adds a IN clause between the current and the given expression.

Expression 
isMissing()
Appends a “IS MISSING” to the expression.

Expression 
isNotMissing()
Appends a “IS NOT MISSING” to the expression.

Expression 
isNotNull()
Appends a “IS NOT NULL” to the expression.

Expression 
isNotValued()
Appends a “IS NOT VALUED” to the expression.

Expression 
isNull()
Appends a “IS NULL” to the expression.

Expression 
isValued()
Appends a “IS VALUED” to the expression.

Expression 
like(boolean right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(double right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(Expression right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(float right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(int right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(JsonArray right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(JsonObject right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(long right)
Adds a LIKE clause between the current and the given expression.

Expression 
like(String right)
Adds a LIKE clause between the current and the given expression.

Expression 
lt(boolean right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(double right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(Expression right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(float right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(int right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(JsonArray right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(JsonObject right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(long right)
Combines two expressions with the less than operator (“<”).

Expression 
lt(String right)
Combines two expressions with the less than operator (“<”).

Expression 
lte(boolean right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(double right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(Expression right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(float right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(int right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(JsonArray right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(JsonObject right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(long right)
Combines two expressions with the less or equals than operator (“<=”).

Expression 
lte(String right)
Combines two expressions with the less or equals than operator (“<=”).

static Expression 
MISSING()
Returns an expression representing MISSING.

Expression 
multiply(Expression expression)
Arithmetic multiplication between current and given expression.

Expression 
multiply(Number b)
Arithmetic multiplication between current expression and a given number.

Expression 
multiply(String expression)
Arithmetic multiplication between current and given expression.

Expression 
ne(double right)
Combines two expressions with the not equals operator (“!=”).

Expression 
ne(Expression right)
Combines two expressions with the not equals operator (“!=”).

Expression 
ne(float right)
Combines two expressions with the not equals operator (“!=”).

Expression 
ne(int right)
Combines two expressions with the not equals operator (“!=”).

Expression 
ne(JsonArray right)
Combines two expressions with the not equals operator (“!=”).

Expression 
ne(JsonObject right)
Combines two expressions with the not equals operator (“!=”).

Expression 
ne(long right)
Combines two expressions with the not equals operator (“!=”).

Expression 
ne(String right)
Combines two expressions with the not equals operator (“!=”).

Expression 
not()
Negates the given expression by prefixing a NOT.

Expression 
notBetween(boolean right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(double right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(Expression right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(float right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(int right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(JsonArray right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(JsonObject right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(long right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notBetween(String right)
Adds a NOT BETWEEN clause between the current and the given expression.

Expression 
notIn(boolean right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(double right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(Expression right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(float right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(int right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(JsonArray right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(JsonObject right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(long right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notIn(String right)
Adds a NOT IN clause between the current and the given expression.

Expression 
notLike(boolean right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(double right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(Expression right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(float right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(int right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(JsonArray right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(JsonObject right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(long right)
Adds a NOT LIKE clause between the current and the given expression.

Expression 
notLike(String right)
Adds a NOT LIKE clause between the current and the given expression.

static Expression 
NULL()
Returns an expression representing NULL.

Expression 
or(boolean right)
ORcombines two expressions.

Expression 
or(double right)
ORcombines two expressions.

Expression 
or(Expression right)
ORcombines two expressions.

Expression 
or(float right)
ORcombines two expressions.

Expression 
or(int right)
ORcombines two expressions.

Expression 
or(JsonArray right)
ORcombines two expressions.

Expression 
or(JsonObject right)
ORcombines two expressions.

Expression 
or(long right)
ORcombines two expressions.

Expression 
or(String right)
ORcombines two expressions.

static Expression 
path(Object... pathComponents)
Construct a path (“a.b.c”) from Expressions or values.

static Expression 
s(String... strings)
An identifier or list of identifiers which will be quoted as strings (with "").

static Expression 
sub(Statement statement)
Creates an expression from a given sub
Statement , wrapping it in parenthesis. 
Expression 
subtract(Expression expression)
Arithmetic v between current and given expression.

Expression 
subtract(Number b)
Arithmetic subtraction between current expression and a given number.

Expression 
subtract(String expression)
Arithmetic subtraction between current and given expression.

String 
toString() 
static Expression 
TRUE()
Returns an expression representing boolean TRUE.

static Expression 
x(boolean value)
Creates an arbitrary expression from the given boolean value.

static Expression 
x(double value)
Creates an arbitrary expression from the given double value.

static Expression 
x(float value)
Creates an arbitrary expression from the given float value.

static Expression 
x(int value)
Creates an arbitrary expression from the given integer value.

static Expression 
x(JsonArray value)
Creates an arbitrary expression from the given json array.

static Expression 
x(JsonObject value)
Creates an arbitrary expression from the given json object.

static Expression 
x(long value)
Creates an arbitrary expression from the given long value.

static Expression 
x(Number number)
Creates an expression from a
Number , as is. 
static Expression 
x(Statement statement)
Creates an expression for a given
Statement , as is. 
static Expression 
x(String value)
Creates an arbitrary expression from the given string value.

public static Expression x(String value)
Creates an arbitrary expression from the given string value.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(int value)
Creates an arbitrary expression from the given integer value.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(long value)
Creates an arbitrary expression from the given long value.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(boolean value)
Creates an arbitrary expression from the given boolean value.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(double value)
Creates an arbitrary expression from the given double value.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(float value)
Creates an arbitrary expression from the given float value.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(JsonArray value)
Creates an arbitrary expression from the given json array.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(JsonObject value)
Creates an arbitrary expression from the given json object.
No quoting or escaping will be done on the input. In addition, it is not checked if the given value is an actual valid (N1QL syntax wise) expression.
value
 the value to create the expression from.Expression
representing the value.public static Expression x(Statement statement)
Creates an expression for a given Statement
, as is.
statement
 the statement to convert to an expression.public static Expression x(Number number)
Creates an expression from a Number
, as is.
number
 the number constant to convert to an expression.public static Expression sub(Statement statement)
Creates an expression from a given subStatement
, wrapping it in parenthesis.
statement
 the statement to convert to an expression.public static Expression path(Object... pathComponents)
Construct a path (“a.b.c”) from Expressions or values. Strings are considered identifiers (so they won’t be quoted).
pathComponents
 the elements of the path, joined together by a dot.public static Expression i(String... identifiers)
An identifier or list of identifiers escaped using backquotes `.
Useful for example for identifiers that contains a dash like “beersample”. Multiple identifiers are returned as a list of escaped identifiers separated by “, ”.
identifiers
 the identifier(s) to escape.Expression
representing the escaped identifier.public static Expression s(String... strings)
An identifier or list of identifiers which will be quoted as strings (with "").
strings
 the list of strings to quote.Expression
representing the quoted strings.public static Expression TRUE()
Returns an expression representing boolean TRUE.
public static Expression FALSE()
Returns an expression representing boolean FALSE.
public static Expression NULL()
Returns an expression representing NULL.
public static Expression MISSING()
Returns an expression representing MISSING.
public Expression not()
Negates the given expression by prefixing a NOT.
public Expression and(Expression right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(String right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(int right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(long right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(float right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(double right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(boolean right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(JsonObject right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression and(JsonArray right)
ANDcombines two expressions.
right
 the expression to combine with the current one.public Expression or(Expression right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(String right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(int right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(long right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(boolean right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(float right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(double right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(JsonArray right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression or(JsonObject right)
ORcombines two expressions.
right
 the expression to combine with the current one.public Expression eq(Expression right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(String right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(int right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(long right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(float right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(double right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(boolean right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(JsonArray right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression eq(JsonObject right)
Combines two expressions with the equals operator (“=”).
right
 the expression to combine.public Expression ne(Expression right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression ne(String right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression ne(int right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression ne(long right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression ne(double right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression ne(float right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression ne(JsonObject right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression ne(JsonArray right)
Combines two expressions with the not equals operator (“!=”).
right
 the expression to combine.public Expression gt(Expression right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(String right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(int right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(long right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(float right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(double right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(boolean right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(JsonArray right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression gt(JsonObject right)
Combines two expressions with the greater than operator (“>”).
right
 the expression to combine.public Expression lt(Expression right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(String right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(int right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(long right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(double right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(float right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(boolean right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(JsonObject right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression lt(JsonArray right)
Combines two expressions with the less than operator (“<”).
right
 the expression to combine.public Expression gte(Expression right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(String right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(int right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(long right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(double right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(float right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(boolean right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(JsonObject right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression gte(JsonArray right)
Combines two expressions with the greater or equals than operator (“>=”).
right
 the expression to combine.public Expression concat(Expression right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(String right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(int right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(long right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(boolean right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(float right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(double right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(JsonObject right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression concat(JsonArray right)
Combines two expressions with the concatenation operator (“”).
right
 the expression to combine.public Expression lte(Expression right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(String right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(int right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(long right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(float right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(double right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(boolean right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(JsonObject right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression lte(JsonArray right)
Combines two expressions with the less or equals than operator (“<=”).
right
 the expression to combine.public Expression isValued()
Appends a “IS VALUED” to the expression.
public Expression isNotValued()
Appends a “IS NOT VALUED” to the expression.
public Expression isNull()
Appends a “IS NULL” to the expression.
public Expression isNotNull()
Appends a “IS NOT NULL” to the expression.
public Expression isMissing()
Appends a “IS MISSING” to the expression.
public Expression isNotMissing()
Appends a “IS NOT MISSING” to the expression.
public Expression between(Expression right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(String right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(int right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(long right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(double right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(float right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(boolean right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(JsonObject right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression between(JsonArray right)
Adds a BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(Expression right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(String right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(int right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(long right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(double right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(float right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(boolean right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(JsonObject right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression notBetween(JsonArray right)
Adds a NOT BETWEEN clause between the current and the given expression.
right
 the right hand side expression.public Expression like(Expression right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(String right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(int right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(long right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(boolean right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(double right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(float right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(JsonObject right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression like(JsonArray right)
Adds a LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(Expression right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(String right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(int right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(long right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(boolean right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(float right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(double right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(JsonObject right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression notLike(JsonArray right)
Adds a NOT LIKE clause between the current and the given expression.
right
 the right hand side expression.public Expression exists()
Prefixes the current expression with the EXISTS clause.
public Expression in(Expression right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(String right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(int right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(long right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(boolean right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(double right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(float right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(JsonObject right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression in(JsonArray right)
Adds a IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(Expression right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(String right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(int right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(long right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(boolean right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(float right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(double right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(JsonObject right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression notIn(JsonArray right)
Adds a NOT IN clause between the current and the given expression.
right
 the right hand side expression.public Expression as(String alias)
Adds a AS clause between the current and the given expression. Often used to alias an identifier.
alias
 the right hand side expression.public Expression as(Expression alias)
Adds a AS clause between the current and the given expression. Often used to alias an identifier.
alias
 the right hand side expression.public Expression add(Expression expression)
Arithmetic addition between current and given expression.
expression
 the right hand side expression.public Expression add(Number b)
Arithmetic addition between current expression and a given number.
b
 the right hand side number.public Expression add(String expression)
Arithmetic addition between current and given expression.
expression
 the right hand side expression.public Expression subtract(Expression expression)
Arithmetic v between current and given expression.
expression
 the right hand side expression.public Expression subtract(Number b)
Arithmetic subtraction between current expression and a given number.
b
 the right hand side number.public Expression subtract(String expression)
Arithmetic subtraction between current and given expression.
expression
 the right hand side expression.public Expression multiply(Expression expression)
Arithmetic multiplication between current and given expression.
expression
 the right hand side expression.public Expression multiply(Number b)
Arithmetic multiplication between current expression and a given number.
b
 the right hand side number.public Expression multiply(String expression)
Arithmetic multiplication between current and given expression.
expression
 the right hand side expression.public Expression divide(Expression expression)
Arithmetic division between current and given expression.
expression
 the right hand side expression.public Expression divide(Number b)
Arithmetic division between current expression and a given number.
b
 the right hand side number.public Expression divide(String expression)
Arithmetic division between current and given expression.
expression
 the right hand side expression.Copyright © 2015 Couchbase, Inc.