public final class Query extends Object
The API contains a method to traverse both of these kinds of "placement" of metrics or resources simultaneously. This is nice from a user perspective but creates problems in the impl, because using the relationships of the resources or metrics, one can construct queries, that would be able to branch multiple times and hence form a tree.
| Modifier and Type | Class and Description |
|---|---|
static class |
Query.Builder
A low-level builder able to create new branches in the query tree.
|
static class |
Query.SymmetricExtender
Constructs a query fragment tree by extending all the leaves with a uniform set of filters at a time.
|
| Modifier and Type | Method and Description |
|---|---|
Query.Builder |
asBuilder() |
static Query |
empty() |
Query.SymmetricExtender |
extend() |
static Query.SymmetricExtender |
filter() |
static Filter[][] |
filters(Query query)
Converts the provided filter tree to a list of paths (array of filters).
|
QueryFragment[] |
getFragments() |
List<Query> |
getSubTrees() |
static Query.SymmetricExtender |
path() |
static Query |
to(CanonicalPath entity) |
public static Filter[][] filters(Query query)
query - the tree of filterspublic static Query to(CanonicalPath entity)
public static Query empty()
public static Query.SymmetricExtender filter()
public static Query.SymmetricExtender path()
public QueryFragment[] getFragments()
public List<Query> getSubTrees()
public Query.Builder asBuilder()
public Query.SymmetricExtender extend()
Copyright © 2015 Red Hat, Inc.. All rights reserved.