|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.cache.CachedQuery
public class CachedQuery
Represents a complete information about a submitted query that can be used as a key from Cache objects.
| Constructor Summary | |
|---|---|
CachedQuery(Query query,
Token[] tokens,
int offset,
int length,
long max_hits2scan,
double pg_rerank)
Constructor for the CachedQuery object. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Checks whether the specified object is equal to this one. |
int |
getLength()
Returns the maximum length of the result set. |
long |
getMaxHitsToScan()
Returns maximum number of hits that were scanned. |
int |
getOffset()
Returns the index of the first requested result. |
double |
getPageReRank()
Return the value of the page rerank. |
Query |
getQuery()
Gets the query which results we are caching. |
Token[] |
getTokens()
Gets the tokens that are forming the query |
int |
hashCode()
Returns a hash code value for the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedQuery(Query query,
Token[] tokens,
int offset,
int length,
long max_hits2scan,
double pg_rerank)
query - parsed query submittedtokens - actual tokens submittedoffset - index of the first result to returnlength - maximum number of results to returnmax_hits2scan - maximum number of positive hits to scanpg_rerank - value of the page rerank| Method Detail |
|---|
public Query getQuery()
public Token[] getTokens()
public int getOffset()
public int getLength()
public long getMaxHitsToScan()
public double getPageReRank()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||