public static enum BuilderToken.QUERY extends Enum<BuilderToken.QUERY>
Enum Constant and Description |
---|
AND
All expressions are grouped by an AND operator (all shall be true)
$and : [ expression1, expression2, ... |
BOX
$box : [ [ lng1, lta1 ], [ lng2, lta2 ] ]
|
CENTER
$center : [ [ lng1, lta1 ], radius ]
|
EQ
Comparison operator
$eq : { name : value } |
EXISTS
Field named 'name' shall exist
$exists : name |
FLT
Selects where fields named 'name' are like the one provided, introducing some "fuzzy", which tends to be
slower than mlt
$flt : { $fields : [ name1, name2 ], $like : like_text } |
GEOINTERSECTS
Selects geometries that intersect with a geometry
$geoIntersects : { name : { geometry|box|polygon|center } } |
GEOMETRY
type might be Point (simple lng, lta), Box, Polygon
$geometry : { $type : "type", $coordinates : [ [ lng1, lta1 ], [ lng2, lta2 ], ... |
GEOWITHIN
Selects geometries within a bounding geometry
$geoWithin : { name : { geometry|box|polygon|center } } |
GT
Comparison operator
$gt : { name : value } |
GTE
Comparison operator $gte
: { name : value } |
IN
field named 'name' contains at least one of the values 'value1', 'value2', ...
|
ISNULL
Field named 'name' shall be empty or set to null
$isNull : name |
LT
Comparison operator
$lt : { name : value } |
LTE
Comparison operator
$lte : { name : value } |
MATCH
Selects where field named 'name' matches some words
$match : { name : words, $max_expansions : n } |
MATCH_ALL
Selects where field named 'name' matches all words
$match_all : { name : words, $max_expansions : n } |
MATCH_PHRASE
Selects where field named 'name' matches a phrase (somewhere)
$match_phrase : { name : phrase, $max_expansions : n } |
MATCH_PHRASE_PREFIX
Selects where field named 'name' matches a phrase as a prefix of the field
$match_phrase_prefix : { name : phrase, $max_expansions : n } |
MISSING
Field named 'name' shall not exist (faster than $not : [ $exists : name ] )
$missing : name |
MLT
Selects where fields named 'name' are like the one provided
$mlt : { $fields : [ name1, name2 ], $like : like_text } |
NE
Comparison operator
$ne : { name : value } |
NEAR
Selects geometries in proximity to a point
$near : { name : { geometry_point|[ lng1, lta1], $maxDistance : distance } } |
NIN
field named 'name' does not contain any of the values 'value1', 'value2', ...
|
NOP
NOP expression, used to represent nop (Null Operation) query '{'$nop':'1'}'
|
NOT
All expressions are grouped by an NOT operator (all shall be false)
$not : [ expression1, expression2, ... |
OR
All expressions are grouped by an OR operator (at least one shall be true)
$or : [ expression1, expression2, ... |
PATH
Selects a node by its exact path (succession of ids)
$path : [ id1, id2, ... |
POLYGON
$polygon : [ [ lng1, lta1 ], [ lng2, lta2 ], ...
|
RANGE
Optimization of comparison operator in a range
$range : { name : { $gte : value, $lte : value } } |
REGEX
Selects where field named 'name' contains a value valid with the corresponding regular expression.
|
SEARCH
Selects where field named 'name' contains something relevant to the search parameter.
|
SIZE
Size of an array named 'name' equals to specified length
$size : { name : length } |
TERM
Selects where field named 'name' contains exactly this term (lowercase only, no blank).
|
WILDCARD
Selects where field named 'name' contains exactly this term (lowercase only, no blank) with optional wildcard
character (* and ?).
|
Modifier and Type | Method and Description |
---|---|
String |
exactToken() |
static BuilderToken.QUERY |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuilderToken.QUERY[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuilderToken.QUERY NOP
public static final BuilderToken.QUERY AND
public static final BuilderToken.QUERY NOT
public static final BuilderToken.QUERY OR
public static final BuilderToken.QUERY EXISTS
public static final BuilderToken.QUERY MISSING
public static final BuilderToken.QUERY ISNULL
public static final BuilderToken.QUERY IN
public static final BuilderToken.QUERY NIN
public static final BuilderToken.QUERY SIZE
public static final BuilderToken.QUERY GT
public static final BuilderToken.QUERY LT
public static final BuilderToken.QUERY GTE
public static final BuilderToken.QUERY LTE
public static final BuilderToken.QUERY NE
public static final BuilderToken.QUERY EQ
public static final BuilderToken.QUERY RANGE
public static final BuilderToken.QUERY GEOMETRY
public static final BuilderToken.QUERY BOX
public static final BuilderToken.QUERY POLYGON
public static final BuilderToken.QUERY CENTER
public static final BuilderToken.QUERY GEOWITHIN
public static final BuilderToken.QUERY GEOINTERSECTS
public static final BuilderToken.QUERY NEAR
public static final BuilderToken.QUERY MATCH
public static final BuilderToken.QUERY MATCH_ALL
public static final BuilderToken.QUERY MATCH_PHRASE
public static final BuilderToken.QUERY MATCH_PHRASE_PREFIX
public static final BuilderToken.QUERY FLT
public static final BuilderToken.QUERY MLT
public static final BuilderToken.QUERY SEARCH
public static final BuilderToken.QUERY REGEX
public static final BuilderToken.QUERY TERM
public static final BuilderToken.QUERY WILDCARD
public static final BuilderToken.QUERY PATH
public static BuilderToken.QUERY[] values()
for (BuilderToken.QUERY c : BuilderToken.QUERY.values()) System.out.println(c);
public static BuilderToken.QUERY 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 final String exactToken()
Copyright © 2018 Vitam. All rights reserved.