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 a
SearchMetrics- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description DefaultSearchMetrics(long took, long totalHits, double maxScore) -
Method Summary
-
Constructor Details
-
DefaultSearchMetrics
public DefaultSearchMetrics(long took, long totalHits, double maxScore)
-
-
Method Details
-
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
-
toString
-