Package com.yahoo.container.logging
Class HitCounts
- java.lang.Object
-
- com.yahoo.container.logging.HitCounts
-
public class HitCounts extends Object
A wrapper for hit counts, modelled after a search system. Advanced database searches and similar could use these structures as well.- Author:
- Steinar Knutsen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coverage
getCoverage()
int
getRequestedHits()
The number of hits requested by the user.int
getRequestedOffset()
The user requested offset into the linear mapping of the result space.int
getRetrievedHitCount()
The number of hits returned by the server.int
getSummaryCount()
The number of hit summaries ("document contents") fetched.long
getTotalHitCount()
The total number of matching hits for the request.
-
-
-
Constructor Detail
-
HitCounts
public HitCounts(int retrievedHits, int summaryCount, long totalHitCount, int requestedHits, int requestedOffset, Coverage coverage)
-
-
Method Detail
-
getRetrievedHitCount
public int getRetrievedHitCount()
The number of hits returned by the server. Compare to getRequestedHits().
-
getSummaryCount
public int getSummaryCount()
The number of hit summaries ("document contents") fetched.
-
getTotalHitCount
public long getTotalHitCount()
The total number of matching hits for the request.
-
getRequestedHits
public int getRequestedHits()
The number of hits requested by the user. Compare to getRetrievedHitCount().
-
getRequestedOffset
public int getRequestedOffset()
The user requested offset into the linear mapping of the result space.
-
getCoverage
public Coverage getCoverage()
-
-