public abstract class AnalyticsQuery extends ExtendedQueryBase implements PostFilter
Constructor and Description |
---|
AnalyticsQuery()
Use this constructor for single node analytics.
|
AnalyticsQuery(MergeStrategy mergeStrategy)
Use this constructor for distributed analytics.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
abstract DelegatingCollector |
getAnalyticsCollector(ResponseBuilder rb,
IndexSearcher searcher) |
boolean |
getCache()
Should this query be cached in the query cache or filter cache.
|
int |
getCost()
Returns the cost of this query, used to order checking of filters that are not cached.
|
DelegatingCollector |
getFilterCollector(IndexSearcher searcher)
Returns a DelegatingCollector to be run after the main query and all of its filters, but before any sorting or grouping collectors
|
int |
hashCode() |
getCacheSep, getOptions, getOptionsString, setCache, setCacheSep, setCost, toString
classHash, createWeight, rewrite, sameClassAs, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCacheSep, setCache, setCacheSep, setCost
public AnalyticsQuery()
public AnalyticsQuery(MergeStrategy mergeStrategy)
mergeStrategy
- defines the distributed merge strategy for this AnalyticsQuerypublic boolean getCache()
ExtendedQuery
getCache
in interface ExtendedQuery
getCache
in class ExtendedQueryBase
public int getCost()
ExtendedQuery
getCost
in interface ExtendedQuery
getCost
in class ExtendedQueryBase
public DelegatingCollector getFilterCollector(IndexSearcher searcher)
PostFilter
getFilterCollector
in interface PostFilter
public abstract DelegatingCollector getAnalyticsCollector(ResponseBuilder rb, IndexSearcher searcher)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.