Class DefaultSearchMetrics
- java.lang.Object
-
- com.couchbase.client.java.search.result.impl.DefaultSearchMetrics
-
- All Implemented Interfaces:
SearchMetrics
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 totalRows, double maxScore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
maxScore()
The largest score amongst the rows.long
took()
The number of nanoseconds the request took executing on the server side.String
toString()
long
totalRows()
The total number of rows (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
-
totalRows
public long totalRows()
Description copied from interface:SearchMetrics
The total number of rows (orSearchQueryRow
) in the result.- Specified by:
totalRows
in interfaceSearchMetrics
-
maxScore
public double maxScore()
Description copied from interface:SearchMetrics
The largest score amongst the rows.- Specified by:
maxScore
in interfaceSearchMetrics
-
-