|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.support.search.CompassSearchResults
public class CompassSearchResults
The results object returned by
CompassSearchHelper when the search
operation on Compass is executed.
Holds the time it took to perform the search operation (in milliseconds), an
array of CompassHit (which might be all the hits, or only
paginated hits) and an array of Pages if using the pagination
feature.
| Nested Class Summary | |
|---|---|
static class |
CompassSearchResults.Page
A class which holds the page data if using the pagination feature. |
| Constructor Summary | |
|---|---|
CompassSearchResults(CompassHit[] hits,
long searchTime,
int totalHits)
|
|
| Method Summary | |
|---|---|
CompassHit[] |
getHits()
Returns the hits that resulted from the search operation. |
CompassSearchResults.Page[] |
getPages()
Returns the pages that construct all the results. |
long |
getSearchTime()
Returns the time that it took to perform the search operation (in milliseconds). |
int |
getTotalHits()
Returns the total number of hits resulted from this search query. |
void |
setPages(CompassSearchResults.Page[] pages)
Sets the pages that contruct all the results. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompassSearchResults(CompassHit[] hits,
long searchTime,
int totalHits)
| Method Detail |
|---|
public CompassHit[] getHits()
public long getSearchTime()
public int getTotalHits()
public CompassSearchResults.Page[] getPages()
public void setPages(CompassSearchResults.Page[] pages)
pages -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||