Class ShardSearchStats
java.lang.Object
org.elasticsearch.index.search.stats.ShardSearchStats
- All Implemented Interfaces:
SearchOperationListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.shard.SearchOperationListener
SearchOperationListener.CompositeListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonFailedFetchPhase(SearchContext searchContext)Executed if a fetch phased failed.voidonFailedQueryPhase(SearchContext searchContext)Executed if a query phased failed.voidonFetchPhase(SearchContext searchContext, long tookInNanos)Executed after the fetch phase successfully finished.voidonFreeReaderContext(ReaderContext readerContext)Executed when a previously created reader context is freed.voidonFreeScrollContext(ReaderContext readerContext)Executed when a scroll searchSearchContextis freed.voidonNewReaderContext(ReaderContext readerContext)Executed when a new reader context was createdvoidonNewScrollContext(ReaderContext readerContext)Executed when a new scroll searchReaderContextwas createdvoidonPreFetchPhase(SearchContext searchContext)Executed before the fetch phase is executedvoidonPreQueryPhase(SearchContext searchContext)Executed before the query phase is executedvoidonQueryPhase(SearchContext searchContext, long tookInNanos)Executed after the query phase successfully finished.Returns the stats, including group specific stats.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.shard.SearchOperationListener
validateReaderContext
-
Constructor Details
-
ShardSearchStats
public ShardSearchStats()
-
-
Method Details
-
stats
Returns the stats, including group specific stats. If the groups are null/0 length, then nothing is returned for them. If they are set, then only groups provided will be returned, or_allfor all groups. -
onPreQueryPhase
Description copied from interface:SearchOperationListenerExecuted before the query phase is executed- Specified by:
onPreQueryPhasein interfaceSearchOperationListener- Parameters:
searchContext- the current search context
-
onFailedQueryPhase
Description copied from interface:SearchOperationListenerExecuted if a query phased failed.- Specified by:
onFailedQueryPhasein interfaceSearchOperationListener- Parameters:
searchContext- the current search context
-
onQueryPhase
Description copied from interface:SearchOperationListenerExecuted after the query phase successfully finished. Note: this is not invoked if the query phase execution failed.- Specified by:
onQueryPhasein interfaceSearchOperationListener- Parameters:
searchContext- the current search contexttookInNanos- the number of nanoseconds the query execution took- See Also:
SearchOperationListener.onFailedQueryPhase(SearchContext)
-
onPreFetchPhase
Description copied from interface:SearchOperationListenerExecuted before the fetch phase is executed- Specified by:
onPreFetchPhasein interfaceSearchOperationListener- Parameters:
searchContext- the current search context
-
onFailedFetchPhase
Description copied from interface:SearchOperationListenerExecuted if a fetch phased failed.- Specified by:
onFailedFetchPhasein interfaceSearchOperationListener- Parameters:
searchContext- the current search context
-
onFetchPhase
Description copied from interface:SearchOperationListenerExecuted after the fetch phase successfully finished. Note: this is not invoked if the fetch phase execution failed.- Specified by:
onFetchPhasein interfaceSearchOperationListener- Parameters:
searchContext- the current search contexttookInNanos- the number of nanoseconds the fetch execution took- See Also:
SearchOperationListener.onFailedFetchPhase(SearchContext)
-
onNewReaderContext
Description copied from interface:SearchOperationListenerExecuted when a new reader context was created- Specified by:
onNewReaderContextin interfaceSearchOperationListener- Parameters:
readerContext- the created context
-
onFreeReaderContext
Description copied from interface:SearchOperationListenerExecuted when a previously created reader context is freed. This happens either when the search execution finishes, if the execution failed or if the search context as idle for and needs to be cleaned up.- Specified by:
onFreeReaderContextin interfaceSearchOperationListener- Parameters:
readerContext- the freed reader context
-
onNewScrollContext
Description copied from interface:SearchOperationListenerExecuted when a new scroll searchReaderContextwas created- Specified by:
onNewScrollContextin interfaceSearchOperationListener- Parameters:
readerContext- the created reader context
-
onFreeScrollContext
Description copied from interface:SearchOperationListenerExecuted when a scroll searchSearchContextis freed. This happens either when the scroll search execution finishes, if the execution failed or if the search context as idle for and needs to be cleaned up.- Specified by:
onFreeScrollContextin interfaceSearchOperationListener- Parameters:
readerContext- the freed search context
-