Constructor and Description |
---|
CachedQuery(Query query,
Token[] tokens,
int offset,
int length,
long max_hits2scan,
double pg_rerank)
Constructor for the CachedQuery object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
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 rerankpublic Query getQuery()
public Token[] getTokens()
public int getOffset()
public int getLength()
public long getMaxHitsToScan()
public double getPageReRank()
public boolean equals(Object o)
Copyright © 2016 Egothor. All Rights Reserved.