Package com.yahoo.container.logging
Class HitCounts
java.lang.Object
com.yahoo.container.logging.HitCounts
A wrapper for hit counts, modelled after a search system.
Advanced database searches and similar could use these
structures as well.
- Author:
- Steinar Knutsen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The number of hits requested by the user.int
The user requested offset into the linear mapping of the result space.int
The number of hits returned by the server.int
The number of hit summaries ("document contents") fetched.long
The total number of matching hits for the request.
-
Constructor Details
-
HitCounts
public HitCounts(int retrievedHits, int summaryCount, long totalHitCount, int requestedHits, int requestedOffset, Coverage coverage)
-
-
Method Details
-
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
-