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 double
maxScore()
The largest score amongst the hits.long
took()
The number of nanoseconds the request took executing on the server side.String
toString()
long
totalHits()
The total number of hits (orSearchQueryRow
) in the result.
-
-
-
Method Detail
-
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
-
-