|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.core.QueryResponse
public class QueryResponse
A QueryResponse is returned as a query return value. It contains the number of all hits and an enumeration of hits that is calculated as a response to user's query.
| Constructor Summary | |
|---|---|
QueryResponse(int offset,
long wouldBe,
long positives,
Sequence<Hit> e,
Token[] queryTokens,
int enum_len,
Query adaptedQuery)
Constructor for the QueryResponse object. |
|
| Method Summary | |
|---|---|
Query |
getAdaptedQuery()
Return the query which was finally solved in the system. |
long |
getHitsScanned()
Return the number of hits that were really read and identified as positive hits. |
int |
getOffset()
Return the offset of the first hit saved in this object. |
Sequence<Hit> |
getResult()
Return an enumeration of Hits. |
int |
getResultLength()
Gets the enumerationLength attribute of the QueryResponse object |
long |
getWouldBe()
Return the number of hits that may be found for a query. |
Token[] |
queryTokens()
Return an array of all tokens recognized in a query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResponse(int offset,
long wouldBe,
long positives,
Sequence<Hit> e,
Token[] queryTokens,
int enum_len,
Query adaptedQuery)
offset - offset position of the first hit in this objectwouldBe - number of hits for a query (this value can be guessed)positives - number of positive hits which were really reade - Enumeration of Hits.queryTokens - array of tokens of a queryenum_len - number of hits we collectedadaptedQuery - how the system adapted the original query| Method Detail |
|---|
public Query getAdaptedQuery()
public Sequence<Hit> getResult()
Hits.
public int getOffset()
public int getResultLength()
public long getWouldBe()
public long getHitsScanned()
public Token[] queryTokens()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||