org.egothor.cache
Class CachedResult

java.lang.Object
  extended by org.egothor.cache.CachedResult

public class CachedResult
extends java.lang.Object

Represents a complete result of a query. Contains resulting hits, number of scanned and guessed hits.


Constructor Summary
CachedResult(java.util.ArrayList<Hit> hits, long wouldBe, long positives)
          Constructor for the CachedResult object.
 
Method Summary
 Hit[] getHits()
          Gets the hits.
 long getPositives()
          Returns the number of scanned hits.
 long getWouldBe()
          Returns the number guessed hits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedResult

public CachedResult(java.util.ArrayList<Hit> hits,
                    long wouldBe,
                    long positives)
Constructor for the CachedResult object.

Parameters:
hits - hits stored by this result
wouldBe - number of guessed hits
positives - number of scanned hits
Method Detail

getHits

public Hit[] getHits()
Gets the hits.

Returns:
hits

getWouldBe

public long getWouldBe()
Returns the number guessed hits.

Returns:
number of guessed hits

getPositives

public long getPositives()
Returns the number of scanned hits.

Returns:
number of scanned hits