Enum Class BuilderToken.QUERY
java.lang.Object
java.lang.Enum<BuilderToken.QUERY>
fr.gouv.vitam.common.database.builder.request.configuration.BuilderToken.QUERY
- All Implemented Interfaces:
Serializable
,Comparable<BuilderToken.QUERY>
,Constable
- Enclosing class:
- BuilderToken
Query model
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAll expressions are grouped by an AND operator (all shall be true)
$and : [ expression1, expression2, ...$box : [ [ lng1, lta1 ], [ lng2, lta2 ] ]$center : [ [ lng1, lta1 ], radius ]Comparison operator
$eq : { name : value }Field named 'name' shall exist
$exists : nameSelects 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 }Selects geometries that intersect with a geometry
$geoIntersects : { name : { geometry|box|polygon|center } }type might be Point (simple lng, lta), Box, Polygon
$geometry : { $type : "type", $coordinates : [ [ lng1, lta1 ], [ lng2, lta2 ], ...Selects geometries within a bounding geometry
$geoWithin : { name : { geometry|box|polygon|center } }Comparison operator
$gt : { name : value }Comparison operator $gte
: { name : value }field named 'name' contains at least one of the values 'value1', 'value2', ...Field named 'name' shall be empty or set to null
$isNull : nameComparison operator
$lt : { name : value }Comparison operator
$lte : { name : value }Selects where field named 'name' matches some words
$match : { name : words, $max_expansions : n }Selects where field named 'name' matches all words
$match_all : { name : words, $max_expansions : n }Selects where field named 'name' matches a phrase (somewhere)
$match_phrase : { name : phrase, $max_expansions : n }Selects where field named 'name' matches a phrase as a prefix of the field
$match_phrase_prefix : { name : phrase, $max_expansions : n }Field named 'name' shall not exist (faster than $not : [ $exists : name ] )
$missing : nameSelects where fields named 'name' are like the one provided
$mlt : { $fields : [ name1, name2 ], $like : like_text }Comparison operator
$ne : { name : value }Selects geometries in proximity to a point
$near : { name : { geometry_point|[ lng1, lta1], $maxDistance : distance } }field named 'name' does not contain any of the values 'value1', 'value2', ...NOP expression, used to represent nop (Null Operation) query '{'$nop':'1'}'All expressions are grouped by an NOT operator (all shall be false)
$not : [ expression1, expression2, ...All expressions are grouped by an OR operator (at least one shall be true)
$or : [ expression1, expression2, ...Selects a node by its exact path (succession of ids)
$path : [ id1, id2, ...$polygon : [ [ lng1, lta1 ], [ lng2, lta2 ], ...Optimization of comparison operator in a range
$range : { name : { $gte : value, $lte : value } }Selects where field named 'name' contains a value valid with the corresponding regular expression.Selects where field named 'name' contains something relevant to the search parameter.Size of an array named 'name' equals to specified length
$size : { name : length }Allows nested search on _qualifiers.versionsSelects where field named 'name' contains exactly this term (lowercase only, no blank).Selects where field named 'name' contains exactly this term (lowercase only, no blank) with optional wildcard character (* and ?). -
Method Summary
Modifier and TypeMethodDescriptionfinal String
static BuilderToken.QUERY
Returns the enum constant of this class with the specified name.static BuilderToken.QUERY[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOP
NOP expression, used to represent nop (Null Operation) query '{'$nop':'1'}' -
AND
All expressions are grouped by an AND operator (all shall be true)
$and : [ expression1, expression2, ... ] -
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, ... ] -
EXISTS
Field named 'name' shall exist
$exists : name -
MISSING
Field named 'name' shall not exist (faster than $not : [ $exists : name ] )
$missing : name -
ISNULL
Field named 'name' shall be empty or set to null
$isNull : name -
IN
field named 'name' contains at least one of the values 'value1', 'value2', ...
$in : { name : [ value1, value2, ... ] } -
NIN
field named 'name' does not contain any of the values 'value1', 'value2', ...
$nin : { name : [ value1, value2, ... ] } -
SIZE
Size of an array named 'name' equals to specified length
$size : { name : length } -
GT
Comparison operator
$gt : { name : value } -
LT
Comparison operator
$lt : { name : value } -
GTE
Comparison operator $gte
: { name : value } -
LTE
Comparison operator
$lte : { name : value } -
NE
Comparison operator
$ne : { name : value } -
EQ
Comparison operator
$eq : { name : value } -
RANGE
Optimization of comparison operator in a range
$range : { name : { $gte : value, $lte : value } } -
GEOMETRY
type might be Point (simple lng, lta), Box, Polygon
$geometry : { $type : "type", $coordinates : [ [ lng1, lta1 ], [ lng2, lta2 ], ... ] } -
BOX
$box : [ [ lng1, lta1 ], [ lng2, lta2 ] ] -
POLYGON
$polygon : [ [ lng1, lta1 ], [ lng2, lta2 ], ... ] -
CENTER
$center : [ [ lng1, lta1 ], radius ] -
GEOWITHIN
Selects geometries within a bounding geometry
$geoWithin : { name : { geometry|box|polygon|center } } -
GEOINTERSECTS
Selects geometries that intersect with a geometry
$geoIntersects : { name : { geometry|box|polygon|center } } -
NEAR
Selects geometries in proximity to a point
$near : { name : { geometry_point|[ lng1, lta1], $maxDistance : distance } } -
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 } -
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 } -
MLT
Selects where fields named 'name' are like the one provided
$mlt : { $fields : [ name1, name2 ], $like : like_text } -
SEARCH
Selects where field named 'name' contains something relevant to the search parameter. This search parameter can contain wildcards (* ?), specifications:
(x y) meaning x or y
"x y" meaning exactly sub phrase "x y"
+x -y meaning x must be present, y must be absent
$search : { name : searchParameter } -
REGEX
Selects where field named 'name' contains a value valid with the corresponding regular expression.
$regex : { name : regex } -
TERM
Selects where field named 'name' contains exactly this term (lowercase only, no blank). Useful in simple value field to find one specific item, or for multiple tests at once (AND implicit).
$term : { name : term, name : term } -
WILDCARD
Selects where field named 'name' contains exactly this term (lowercase only, no blank) with optional wildcard character (* and ?). Useful in simple value field to find one specific item.
$wildcard : { name : term } -
PATH
Selects a node by its exact path (succession of ids)
$path : [ id1, id2, ... ] -
SUBOBJECT
Allows nested search on _qualifiers.versions
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
exactToken
- Returns:
- the exact token
-