Modifier and Type | Method and Description |
---|---|
static DXSearch.PropertiesQuery |
allOf(DXSearch.PropertiesQuery... propertiesQueries)
A query that must match all of the specified property queries recursively.
|
static DXSearch.PropertiesQuery |
allOf(List<DXSearch.PropertiesQuery> propertiesQueries)
A query that must match all of the property queries in the provided list.
|
static DXSearch.PropertiesQuery |
anyOf(DXSearch.PropertiesQuery... propertiesQueries)
A query that matches any of the specified property queries recursively.
|
static DXSearch.PropertiesQuery |
anyOf(List<DXSearch.PropertiesQuery> propertiesQueries)
A query that matches any of the property queries in the provided list.
|
static DXSearch.PropertiesQuery |
withKey(String propertyKey)
A query that the specified property key is present.
|
static DXSearch.PropertiesQuery |
withKeyAndBoolean(String propertyKey,
Boolean propertyExists)
A query that the specified property key is present of not on the data object
|
static DXSearch.PropertiesQuery |
withKeyAndMapValue(String propertyKey,
Map<String,String> mapValue)
A query that the specified property is defined by the mapping
|
static DXSearch.PropertiesQuery |
withKeyAndValue(String propertyKey,
String propertyValue)
A query that the specified property key has the specified property value.
|
public static DXSearch.PropertiesQuery allOf(List<DXSearch.PropertiesQuery> propertiesQueries)
propertiesQueries
- list of queries, all of which must be matchedpublic static DXSearch.PropertiesQuery allOf(DXSearch.PropertiesQuery... propertiesQueries)
propertiesQueries
- queries, all of which must be matchedpublic static DXSearch.PropertiesQuery anyOf(List<DXSearch.PropertiesQuery> propertiesQueries)
propertiesQueries
- list of queries, at least one of which must be matchedpublic static DXSearch.PropertiesQuery anyOf(DXSearch.PropertiesQuery... propertiesQueries)
propertiesQueries
- queries, at least one of which must be matchedpublic static DXSearch.PropertiesQuery withKey(String propertyKey)
propertyKey
- property key that must be presentpublic static DXSearch.PropertiesQuery withKeyAndValue(String propertyKey, String propertyValue)
propertyKey
- property keypropertyValue
- property valuepublic static DXSearch.PropertiesQuery withKeyAndBoolean(String propertyKey, Boolean propertyExists)
propertyKey
- property keypropertyExists
- boolean value - true if the property is present on a data object,
false, if it is notpublic static DXSearch.PropertiesQuery withKeyAndMapValue(String propertyKey, Map<String,String> mapValue)
propertyKey
- property keymapValue
- a hash map with the key defining the relation (e.g. $ne indication "not equal")
and the value being a string value of the propertyCopyright © 2023. All Rights Reserved.