Class SolrStatsResult
java.lang.Object
org.alfresco.repo.search.impl.solr.SolrStatsResult
- All Implemented Interfaces:
SearchEngineResultMetadata,StatsResultSet
The results of executing a solr stats query
- Since:
- 5.0
- Author:
- Gethin James
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatAsDate(String name) getMax()getMean()longTotal number of items matching a the current query execution.Returns the query execution time, or put in other words, the amount of time the search engine spent for processing the request.getStats()getSum()protected voidprocessJson(org.json.JSONObject json) Parses the jsontoString()
-
Constructor Details
-
SolrStatsResult
public SolrStatsResult(org.json.JSONObject json, boolean nameIsADate)
-
-
Method Details
-
processJson
protected void processJson(org.json.JSONObject json) throws org.json.JSONException Parses the json- Parameters:
json- JSONObject- Throws:
org.json.JSONException
-
formatAsDate
-
toString
-
getStatus
-
getQueryTime
Description copied from interface:SearchEngineResultMetadataReturns the query execution time, or put in other words, the amount of time the search engine spent for processing the request.- Specified by:
getQueryTimein interfaceSearchEngineResultMetadata- Returns:
- the query execution time
-
getNumberFound
public long getNumberFound()Description copied from interface:SearchEngineResultMetadataTotal number of items matching a the current query execution.- Specified by:
getNumberFoundin interfaceSearchEngineResultMetadata- Specified by:
getNumberFoundin interfaceStatsResultSet- Returns:
- the number of items in the search index that matched a query execution.
-
getSum
- Specified by:
getSumin interfaceStatsResultSet
-
getMax
- Specified by:
getMaxin interfaceStatsResultSet
-
getMean
- Specified by:
getMeanin interfaceStatsResultSet
-
getStats
- Specified by:
getStatsin interfaceStatsResultSet
-