public enum MiscellaneousOperator extends Enum<MiscellaneousOperator> implements Operator
Enum Constant and Description |
---|
ALL
Operator to ensure that all values provided in the operand existing in
the array field.
|
COMMENT
A pseudo-operator to add a comment to a query.
|
ELEMENT_MATCH
Provides the ability to match an entire array element at once.
|
EXISTS
Check to see if a field exists or not.
|
IN
Checks if a value for a field is present in the operand array.
|
MOD
Performs a modulo operation on a field and is equivalent to the where
statement
field % d == m . |
NIN
Checks if a value for a field is not present in the operand array.
|
REG_EX
Test if a field matches a specified regular expression.
|
SIZE
Compares the length of the array field.
|
TEXT
Support for text searches.
|
TYPE
Check if a value's type matches the expected type.
|
WHERE
Support for an ad-hoc JavaScript expression.
|
Modifier and Type | Field and Description |
---|---|
static String |
LANGUAGE_MODIFIER
The modifier for the
TEXT operator to specify the language of
the query terms. |
static String |
SEARCH_MODIFIER
The modifier for the
TEXT operator to specify the the query
terms. |
Modifier and Type | Method and Description |
---|---|
String |
getToken()
The token for the operator that can be sent to the server.
|
Version |
getVersion()
Returns the first MongoDB version to support the operator.
|
static MiscellaneousOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MiscellaneousOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MiscellaneousOperator ALL
public static final MiscellaneousOperator COMMENT
public static final MiscellaneousOperator ELEMENT_MATCH
public static final MiscellaneousOperator EXISTS
public static final MiscellaneousOperator IN
public static final MiscellaneousOperator MOD
field % d == m
.public static final MiscellaneousOperator NIN
public static final MiscellaneousOperator REG_EX
public static final MiscellaneousOperator SIZE
public static final MiscellaneousOperator TEXT
public static final MiscellaneousOperator TYPE
public static final MiscellaneousOperator WHERE
public static final String LANGUAGE_MODIFIER
TEXT
operator to specify the language of
the query terms.public static final String SEARCH_MODIFIER
TEXT
operator to specify the the query
terms.public static MiscellaneousOperator[] values()
for (MiscellaneousOperator c : MiscellaneousOperator.values()) System.out.println(c);
public static MiscellaneousOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getToken()
public Version getVersion()
getVersion
in interface Operator
null
then the version is not known and can be
assumed to be all currently supported versions.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.