Query.And, Query.CompositeKeyQuery, Query.Equal, Query.GreaterThan, Query.GreaterThanEqual, Query.Has, Query.In, Query.InvertedKeyQuery, Query.KeyQuery, Query.LessThan, Query.LessThanEqual, Query.Not, Query.Or, Query.Regex| Modifier and Type | Method and Description |
|---|---|
List<Query> |
andList()
Converts this query into a list of sub-queries that can be ANDd together.
|
List<Query> |
dnfList()
Converts this query into disjunctive normal form.
|
boolean |
equals(Object obj) |
Map<String,String> |
exactTags()
Extract the tags from the query that have an exact match for a given value.
|
int |
hashCode() |
boolean |
matches(Map<String,String> tags)
Check to see if this query matches a set of tags.
|
Query |
not()
Returns an inverted version of this query.
|
Query |
simplify(Map<String,String> tags)
Return a new query that has been simplified by pre-evaluating the conditions for a set
of tags that are common to all metrics.
|
String |
toString() |
public Query not()
Querypublic List<Query> dnfList()
Querypublic List<Query> andList()
Querypublic boolean matches(Map<String,String> tags)
Querypublic Map<String,String> exactTags()
QueryQuery.Equal clause.public Query simplify(Map<String,String> tags)
Query