public class QueryResponse extends Object
| Constructor and Description |
|---|
QueryResponse(int offset,
long wouldBe,
long positives,
Sequence<Hit> e,
Token[] queryTokens,
int enum_len,
Query adaptedQuery)
Constructor for the QueryResponse object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 querypublic Query getAdaptedQuery()
public int getOffset()
public int getResultLength()
public long getWouldBe()
public long getHitsScanned()
public Token[] queryTokens()
Copyright © 2016 Egothor. All Rights Reserved.