| Modifier and Type | Class and Description |
|---|---|
| private static class | CacheQuery.OrderingImpl
An attribute/direction pair |
| private class | CacheQuery.StoreQueryImpl
StoreQuery implementation (essentially a snapshot of this (non-frozen) query builder |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Cache | |
| private final List | |
| private volatile boolean | |
| private final Set | |
| private volatile ExecutionHints | |
| private final Set | |
| private volatile boolean | |
| private volatile boolean | |
| private volatile int | |
| private final List | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Query | addCriteria(Criteria criteria)
Implements net. |
| public Query | addGroupBy(Attribute<?>... attributes)
Implements net. |
| public Query | addOrderBy(Attribute<?>
The attribute to order the results by attribute, Direction Ascending or descending direction)Implements net. |
| private void | |
| private void | |
| private static List | |
| public Query | |
| public Results | |
| public Results | execute(ExecutionHints params)
Implements net. execute(), but with specified execution parameters.
|
| public List | getAggregatorInstances()
Implements net. |
| public List | getAggregators()
Implements net. |
| public Cache | getCache()
Implements net. |
| public Criteria | |
| private Criteria | |
| public ExecutionHints | getExecutionHints()
Implements net. |
| public List | getOrdering()
Implements net. |
| public String[] | |
| public Set | groupByAttributes()
Implements net. |
| public Query | includeAggregator(Aggregator... aggregators)
Implements net. This method may be called multiple times to request multiple aggregations |
| public Query | includeAttribute(Attribute<?>...
the query attributes to select attributes)Implements net. |
| public Query | includeKeys()
Implements net. |
| public Query | includeValues()
Implements net. |
| public Query | maxResults(int
the maximum number of results to return maxResults)Implements net. |
| public int | maxResults()
Implements net. |
| public Set | requestedAttributes()
Implements net. |
| public boolean | |
| public boolean | |
| private StoreQuery | |
| public void | targets(final String[] targets)
Implements net. |
| aggregators | back to summary |
|---|---|
| private final List<Aggregator> aggregators | |
| cache | back to summary |
|---|---|
| private final Cache cache | |
| criteria | back to summary |
|---|---|
| private final List<Criteria> criteria | |
| frozen | back to summary |
|---|---|
| private volatile boolean frozen | |
| groupByAttributes | back to summary |
|---|---|
| private final Set<Attribute<?>> groupByAttributes | |
| hints | back to summary |
|---|---|
| private volatile ExecutionHints hints | |
| includedAttributes | back to summary |
|---|---|
| private final Set<Attribute<?>> includedAttributes | |
| includeKeys | back to summary |
|---|---|
| private volatile boolean includeKeys | |
| includeValues | back to summary |
|---|---|
| private volatile boolean includeValues | |
| maxResults | back to summary |
|---|---|
| private volatile int maxResults | |
| orderings | back to summary |
|---|---|
| private final List<StoreQuery. | |
| targets | back to summary |
|---|---|
| private String[] targets | |
| CacheQuery | back to summary |
|---|---|
| public CacheQuery(Cache cache) Create a new builder instance | |
| addCriteria | back to summary |
|---|---|
| public Query addCriteria(Criteria criteria) Implements net. Doc from net. Adds a criteria to the query | |
| addGroupBy | back to summary |
|---|---|
| public Query addGroupBy(Attribute<?>... attributes) Implements net. Doc from net. Group result set by unique value(s) of specified attribute(s). Rows with duplicate values for these attributes will be removed. This method may also be chained to achieve the same effect. | |
| addOrderBy | back to summary |
|---|---|
| public Query addOrderBy(Attribute<?> attribute, Direction direction) Implements net. Doc from net. Request result set ordering by the given attribute and direction. This call can be made multiple times to specify second level. third level, etc orderings | |
| assertFrozen | back to summary |
|---|---|
| private void assertFrozen() | |
| checkFrozen | back to summary |
|---|---|
| private void checkFrozen() | |
| createAggregatorInstances | back to summary |
|---|---|
| private static List | |
| end | back to summary |
|---|---|
| public Query end() Implements net. Doc from net. Optional method for terminating query creation. If called the query becomes immutable, so that attempting any further mutations will result in an exception | |
| execute | back to summary |
|---|---|
| public Results execute() throws SearchException Implements net. Doc from net. Execute this query. Every call to this method will re-execute the query and return a distinct results object.
An empty results object will be returned (on timeout) for non-stop enabled caches with
| |
| execute | back to summary |
|---|---|
| public Results execute(ExecutionHints params) throws SearchException Implements net. Doc from net. Like | |
| getAggregatorInstances | back to summary |
|---|---|
| public List Implements net. Doc from net. Get the requested aggregator instances
| |
| getAggregators | back to summary |
|---|---|
| public List Implements net. Doc from net. Get the requested aggregators
| |
| getCache | back to summary |
|---|---|
| public Cache getCache() Implements net. Doc from net. Get the cache this query originated from
| |
| getCriteria | back to summary |
|---|---|
| public Criteria getCriteria() Implements net. Doc from net. Get the search criteria
| |
| getEffectiveCriteriaCopy | back to summary |
|---|---|
| private Criteria getEffectiveCriteriaCopy() | |
| getExecutionHints | back to summary |
|---|---|
| public ExecutionHints getExecutionHints() Implements net. Doc from net. Get execution hints for this query
| |
| getOrdering | back to summary |
|---|---|
| public List Implements net. Doc from net. Get the requested search orderings
| |
| getTargets | back to summary |
|---|---|
| public String[] getTargets() Implements net. Doc from net. This needs to be cleaned up. We don't want to introduce any kind of ordering here, as there simply is none.
Meanwhile, this is used to keep the ordering on BMQL created Queries. Yet,
| |
| groupByAttributes | back to summary |
|---|---|
| public Set Implements net. Doc from net. Get the set of attributes to group result set by | |
| includeAggregator | back to summary |
|---|---|
| public Query includeAggregator(Aggregator... aggregators) throws SearchException, AggregatorException Implements net. Doc from net. Request this query to aggregate the results by the given Aggregator(s) This method may be called multiple times to request multiple aggregations
| |
| includeAttribute | back to summary |
|---|---|
| public Query includeAttribute(Attribute<?>... attributes) Implements net. Doc from net. Request that the given attribute(s) should be present in the result for this query. This call can be made multiple times to add to the set of selected attributes.
Note that in a distributed cache attributes may need to come over the network. To prevent very large network transfers, consider
limiting the results size with | |
| includeKeys | back to summary |
|---|---|
| public Query includeKeys() Implements net. Doc from net. Request that the key object be present in the results.
| |
| includeValues | back to summary |
|---|---|
| public Query includeValues() Implements net. Doc from net. Request that the value object be present in the results.
| |
| maxResults | back to summary |
|---|---|
| public Query maxResults(int maxResults) Implements net. Doc from net. Restrict the number of results returned from the search.
By default an unlimited number of results can be returned. This could cause an OutOfMemoryError to be thrown. It is therefore
recommended to add an Negative values are ignored and result in the default behaviour: unlimited number of results.
| |
| maxResults | back to summary |
|---|---|
| public int maxResults() Implements net. Doc from net. Get the maximum number of results to return
| |
| requestedAttributes | back to summary |
|---|---|
| public Set Implements net. Doc from net. Get the set of attributes requested by this query | |
| requestsKeys | back to summary |
|---|---|
| public boolean requestsKeys() Implements net. Doc from net. Are keys requested?
| |
| requestsValues | back to summary |
|---|---|
| public boolean requestsValues() Implements net. Doc from net. Are values requested?
| |
| snapshot | back to summary |
|---|---|
| private StoreQuery snapshot() | |
| targets | back to summary |
|---|---|
| public void targets(final String[] targets) Implements net. Doc from net. Set the names of the select targets. These will either be searchAttribute names or aggregator display names, eg. 'ave(salary)' This is used by BMQL to form the return results.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Attribute | |
| private final Direction |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Attribute | getAttribute()
Implements net. |
| public Direction |
| attribute | back to summary |
|---|---|
| private final Attribute<?> attribute | |
| direction | back to summary |
|---|---|
| private final Direction direction | |
| OrderingImpl | back to summary |
|---|---|
| public OrderingImpl(Attribute<?> attribute, Direction direction) | |
| getAttribute | back to summary |
|---|---|
| public Attribute Implements net. Doc from net. Attribute to order by
| |
| getDirection | back to summary |
|---|---|
| public Direction getDirection() Implements net. Doc from net. Ordering direction
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final Set | |
| private final Criteria | |
| private final Set | |
| private final boolean | |
| private final boolean | |
| private final int | |
| private final List | |
| private final ExecutionHints |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public List | getAggregatorInstances()
Implements net. |
| public List | getAggregators()
Implements net. |
| public Cache | getCache()
Implements net. |
| public Criteria | |
| public ExecutionHints | getExecutionHints()
Implements net. |
| public List | getOrdering()
Implements net. |
| public String[] | |
| public Set | groupByAttributes()
Implements net. |
| public int | maxResults()
Implements net. |
| public Set | requestedAttributes()
Implements net. |
| public boolean | |
| public boolean | |
| public void | targets(String[] targets)
Implements net. |
| copiedAggregatorInstances | back to summary |
|---|---|
| private final List<AggregatorInstance<?>> copiedAggregatorInstances | |
| copiedAggregators | back to summary |
|---|---|
| private final List<Aggregator> copiedAggregators | |
| copiedAttributes | back to summary |
|---|---|
| private final Set<Attribute<?>> copiedAttributes | |
| copiedCriteria | back to summary |
|---|---|
| private final Criteria copiedCriteria | |
| copiedGroupByAttributes | back to summary |
|---|---|
| private final Set<Attribute<?>> copiedGroupByAttributes | |
| copiedIncludeKeys | back to summary |
|---|---|
| private final boolean copiedIncludeKeys | |
| copiedIncludeValues | back to summary |
|---|---|
| private final boolean copiedIncludeValues | |
| copiedMaxResults | back to summary |
|---|---|
| private final int copiedMaxResults | |
| copiedOrdering | back to summary |
|---|---|
| private final List<StoreQuery. | |
| execHints | back to summary |
|---|---|
| private final ExecutionHints execHints | |
| StoreQueryImpl | back to summary |
|---|---|
| private StoreQueryImpl() | |
| getAggregatorInstances | back to summary |
|---|---|
| public List Implements net. Doc from net. Get the requested aggregator instances
| |
| getAggregators | back to summary |
|---|---|
| public List Implements net. Doc from net. Get the requested aggregators
| |
| getCache | back to summary |
|---|---|
| public Cache getCache() Implements net. Doc from net. Get the cache this query originated from
| |
| getCriteria | back to summary |
|---|---|
| public Criteria getCriteria() Implements net. Doc from net. Get the search criteria
| |
| getExecutionHints | back to summary |
|---|---|
| public ExecutionHints getExecutionHints() Implements net. Doc from net. Get execution hints for this query
| |
| getOrdering | back to summary |
|---|---|
| public List Implements net. Doc from net. Get the requested search orderings
| |
| getTargets | back to summary |
|---|---|
| public String[] getTargets() Implements net. Doc from net. This needs to be cleaned up. We don't want to introduce any kind of ordering here, as there simply is none.
Meanwhile, this is used to keep the ordering on BMQL created Queries. Yet,
| |
| groupByAttributes | back to summary |
|---|---|
| public Set Implements net. Doc from net. Get the set of attributes to group result set by | |
| maxResults | back to summary |
|---|---|
| public int maxResults() Implements net. Doc from net. Get the maximum number of results to return
| |
| requestedAttributes | back to summary |
|---|---|
| public Set Implements net. Doc from net. Get the set of attributes requested by this query | |
| requestsKeys | back to summary |
|---|---|
| public boolean requestsKeys() Implements net. Doc from net. Are keys requested?
| |
| requestsValues | back to summary |
|---|---|
| public boolean requestsValues() Implements net. Doc from net. Are values requested?
| |
| targets | back to summary |
|---|---|
| public void targets(String[] targets) Implements net. Doc from net. Set the names of the select targets. These will either be searchAttribute names or aggregator display names, eg. 'ave(salary)' This is used by BMQL to form the return results. | |