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 java.lang.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 java.lang.StringformatAsDate(java.lang.String name)java.lang.LonggetMax()java.lang.LonggetMean()longgetNumberFound()java.lang.LonggetQueryTime()java.util.List<org.alfresco.service.cmr.search.StatsResultStat>getStats()java.lang.LonggetStatus()java.lang.LonggetSum()protected voidprocessJson(org.json.JSONObject json)Parses the jsonjava.lang.StringtoString()
-
-
-
Method Detail
-
processJson
protected void processJson(org.json.JSONObject json) throws org.json.JSONExceptionParses the json- Parameters:
json- JSONObject- Throws:
org.json.JSONException
-
formatAsDate
public static java.lang.String formatAsDate(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStatus
public java.lang.Long getStatus()
-
getQueryTime
public java.lang.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 java.lang.Long getSum()
- Specified by:
getSumin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
getMax
public java.lang.Long getMax()
- Specified by:
getMaxin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
getMean
public java.lang.Long getMean()
- Specified by:
getMeanin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
getStats
public java.util.List<org.alfresco.service.cmr.search.StatsResultStat> getStats()
- Specified by:
getStatsin interfaceorg.alfresco.service.cmr.search.StatsResultSet
-
-