@InterfaceStability.Committed @InterfaceAudience.Public public class DefaultSearchMetrics extends Object implements SearchMetrics
The default implementation for a SearchMetrics
| Constructor and Description |
|---|
DefaultSearchMetrics(long took,
long totalHits,
double maxScore) |
| Modifier and Type | Method and 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 (or
SearchQueryRow) in the result. |
public DefaultSearchMetrics(long took,
long totalHits,
double maxScore)
public long took()
SearchMetricsThe number of nanoseconds the request took executing on the server side.
took in interface SearchMetricspublic long totalHits()
SearchMetricsThe total number of hits (or SearchQueryRow) in the result.
totalHits in interface SearchMetricspublic double maxScore()
SearchMetricsThe largest score amongst the hits.
maxScore in interface SearchMetricsCopyright © 2015 Couchbase, Inc.