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:SearchMetrics
The number of nanoseconds the request took executing on the server side.- Specified by:
took
in interfaceSearchMetrics
-
totalHits
public long totalHits()Description copied from interface:SearchMetrics
The total number of hits (orSearchQueryRow
) in the result.- Specified by:
totalHits
in interfaceSearchMetrics
-
maxScore
public double maxScore()Description copied from interface:SearchMetrics
The largest score amongst the hits.- Specified by:
maxScore
in interfaceSearchMetrics
-
toString
-