| Package | Description |
|---|---|
| org.hawkular.inventory.base | |
| org.hawkular.inventory.base.spi |
| Modifier and Type | Field and Description |
|---|---|
protected Query |
TraversalContext.selectCandidates
A query that will select the entities of interest from the
TraversalContext.sourcePath. |
protected Query |
TraversalContext.sourcePath
The query to the "point" right before the entities of interest.
|
| Modifier and Type | Method and Description |
|---|---|
Query |
Query.Builder.build()
Builds the whole tree regardless of where in the tree the current builder "operates".
|
static Query |
Query.empty() |
Query |
Query.SymmetricExtender.get() |
static Query |
Query.to(CanonicalPath entity) |
| Modifier and Type | Method and Description |
|---|---|
List<Query> |
Query.getSubTrees() |
| Modifier and Type | Method and Description |
|---|---|
static Filter[][] |
Query.filters(Query query)
Converts the provided filter tree to a list of paths (array of filters).
|
protected BE |
Traversal.getSingle(Query query,
Class<? extends Entity<?,?>> entityType)
A helper method to retrieve a single result from the query or throw an exception if the query yields no results.
|
Query.Builder |
Query.Builder.with(Query other) |
Query.SymmetricExtender |
Query.SymmetricExtender.with(Query other)
Appends the provided query to the leaves of the current query tree, converting all its fragments to the
current fragment type (determined by the last call to
Query.SymmetricExtender.filter() or Query.SymmetricExtender.path()). |
Query.Builder |
Query.Builder.with(Query other,
Function<Filter,QueryFragment> converter) |
Query.SymmetricExtender |
Query.SymmetricExtender.withExact(Query other)
Appends the provided query to the leaves of the current query tree, leaving the type of its fragments as they
originally were.
|
| Modifier and Type | Method and Description |
|---|---|
Page<E> |
InventoryBackend.query(Query query,
Pager pager)
Translates the query to the backend-specific representation and runs it, returning a correct page of results
as prescribed by the provided pager object.
|
<T extends AbstractElement<?,?>> |
InventoryBackend.query(Query query,
Pager pager,
Function<E,T> conversion,
Function<T,Boolean> filter)
A variant of the
InventoryBackend.query(Query, Pager) method which in addition to querying also converts the results
using the provided conversion function and, more importantly, filters the results using the provided (possibly
null) filter function PRIOR TO paging is applied. |
Copyright © 2015 Red Hat, Inc.. All rights reserved.