Class SolrStatsResult
- java.lang.Object
-
- org.alfresco.repo.search.impl.lucene.SolrStatsResult
-
- All Implemented Interfaces:
JSONResult,org.alfresco.service.cmr.search.StatsResultSet
public class SolrStatsResult extends Object implements JSONResult, org.alfresco.service.cmr.search.StatsResultSet
The results of executing a solr stats query- Since:
- 5.0
- Author:
- Gethin James
-
-
Constructor Summary
Constructors Constructor Description SolrStatsResult(org.json.JSONObject json, boolean nameIsADate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringformatAsDate(String name)LonggetMax()LonggetMean()longgetNumberFound()LonggetQueryTime()List<org.alfresco.service.cmr.search.StatsResultStat>getStats()LonggetStatus()LonggetSum()protected voidprocessJson(org.json.JSONObject json)Parses the jsonStringtoString()
-
-
-
Method Detail
-
processJson
protected void processJson(org.json.JSONObject json) throws org.json.JSONExceptionParses the json- Parameters:
json- JSONObject- Throws:
org.json.JSONException
-
getStatus
public Long getStatus()
-
getQueryTime
public Long getQueryTime()
- Specified by:
getQueryTimein interfaceJSONResult
-
getNumberFound
public long getNumberFound()
- Specified by:
getNumberFoundin interfaceJSONResult- Specified by:
getNumberFoundin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
getSum
public Long getSum()
- Specified by:
getSumin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
getMax
public Long getMax()
- Specified by:
getMaxin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
getMean
public Long getMean()
- Specified by:
getMeanin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
getStats
public List<org.alfresco.service.cmr.search.StatsResultStat> getStats()
- Specified by:
getStatsin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
-