Class DefaultSearchMetrics
- java.lang.Object
-
- com.couchbase.client.java.search.result.impl.DefaultSearchMetrics
-
- All Implemented Interfaces:
SearchMetrics
@Committed @Public public class DefaultSearchMetrics extends Object implements SearchMetrics
The default implementation for aSearchMetrics- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchMetrics(long took, long totalHits, double maxScore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublemaxScore()The largest score amongst the hits.longtook()The number of nanoseconds the request took executing on the server side.StringtoString()longtotalHits()The total number of hits (orSearchQueryRow) in the result.
-
-
-
Method Detail
-
took
public long took()
Description copied from interface:SearchMetricsThe number of nanoseconds the request took executing on the server side.- Specified by:
tookin interfaceSearchMetrics
-
totalHits
public long totalHits()
Description copied from interface:SearchMetricsThe total number of hits (orSearchQueryRow) in the result.- Specified by:
totalHitsin interfaceSearchMetrics
-
maxScore
public double maxScore()
Description copied from interface:SearchMetricsThe largest score amongst the hits.- Specified by:
maxScorein interfaceSearchMetrics
-
-