Class 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
    • 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()