public class PredicateExpression
extends java.lang.Object
PredicateExpressions are the same as ordinary Expressions, but instead of
taking a field name as one of their arguments, they are combined with a PredicatedOperation.Expression,
PredicatedOperation| Modifier and Type | Method and Description |
|---|---|
static PredicateExpression |
all(java.lang.Object... rhs)
Matches an array value if it contains all the elements of the argument array
|
static PredicateExpression |
eq(java.lang.Object rhs)
The field is equal to the argument
|
static PredicateExpression |
exists(boolean rhs)
The field exists or not, regardless of its value
|
static PredicateExpression |
gt(java.lang.Object rhs)
The field is greater than the argument
|
static PredicateExpression |
gte(java.lang.Object rhs)
The field is greater than or equal to the argument
|
static PredicateExpression |
in(java.lang.Object... rhs)
The document field must exist in the list provided
|
static PredicateExpression |
lt(java.lang.Object rhs)
The field is less than the argument
|
static PredicateExpression |
lte(java.lang.Object rhs)
The field is less than or equal to the argument
|
static PredicateExpression |
mod(java.lang.Long divisor,
java.lang.Long remainder)
Divisor and Remainder are both positive or negative integers.
|
static PredicateExpression |
ne(java.lang.Object rhs)
The field is not equal to the argument
|
static PredicateExpression |
nin(java.lang.Object... rhs)
The document field must not exist in the list provided
|
static PredicateExpression |
regex(java.lang.String rhs)
A regular expression pattern to match against the document field.
|
static PredicateExpression |
size(java.lang.Long rhs)
Special condition to match the length of an array field in a document.
|
java.lang.String |
toString() |
static PredicateExpression |
type(Type rhs)
The field has a given type
|
public static PredicateExpression lt(java.lang.Object rhs)
rhs - The argument for the comparisonpublic static PredicateExpression lte(java.lang.Object rhs)
rhs - The argument for the comparisonpublic static PredicateExpression eq(java.lang.Object rhs)
rhs - The argument for the comparisonpublic static PredicateExpression ne(java.lang.Object rhs)
rhs - The argument for the comparisonpublic static PredicateExpression gte(java.lang.Object rhs)
rhs - The argument for the comparisonpublic static PredicateExpression gt(java.lang.Object rhs)
rhs - The argument for the comparisonpublic static PredicateExpression exists(boolean rhs)
rhs - The argument (true or false)public static PredicateExpression type(Type rhs)
rhs - The typepublic static PredicateExpression in(java.lang.Object... rhs)
rhs - The argument - one or more valuespublic static PredicateExpression nin(java.lang.Object... rhs)
rhs - The argument - one or more valuespublic static PredicateExpression size(java.lang.Long rhs)
rhs - The length of the arraypublic static PredicateExpression mod(java.lang.Long divisor, java.lang.Long remainder)
divisor - The divisor argument of the mod operationremainder - The remainder argument of the mod operationpublic static PredicateExpression regex(java.lang.String rhs)
rhs - The regular expressionpublic static PredicateExpression all(java.lang.Object... rhs)
rhs - The argumentspublic java.lang.String toString()
toString in class java.lang.Object