@InterfaceStability.Experimental @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()
SearchMetrics
The number of nanoseconds the request took executing on the server side.
took
in interface SearchMetrics
public long totalHits()
SearchMetrics
The total number of hits (or SearchQueryRow
) in the result.
totalHits
in interface SearchMetrics
public double maxScore()
SearchMetrics
The largest score amongst the hits.
maxScore
in interface SearchMetrics
Copyright © 2015 Couchbase, Inc.