|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapidtransform.core.search.lucene.SearchResultsCompass.Page
public static class SearchResultsCompass.Page
SearchResultsCompass internal class used for pagination. For each page, this class holds the page's from index and number of results (size) for the page. It also includes a flag indicating if this is the currently selected page. A Page can cache it's hits by setting it's internal hits array. This will improve performance since the search engine will not be required to re-execute the query for each page.
Constructor Summary | |
---|---|
SearchResultsCompass.Page()
Default constructor |
|
SearchResultsCompass.Page(org.compass.core.CompassHits[] hits)
Constructor used to create a page with it's hits cached internally. |
Method Summary | |
---|---|
int |
getFrom()
|
org.compass.core.CompassHits[] |
getHits()
Returns the cached hits for this page or null if no hits are loaded. |
int |
getSize()
|
boolean |
isLoaded()
Used to check the loaded status of hits cached in this page. |
boolean |
isSelected()
|
void |
setFrom(int from)
|
void |
setHits(org.compass.core.CompassHits[] hits)
Set the Hits for this page. |
void |
setSelected(boolean selected)
|
void |
setSize(int size)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchResultsCompass.Page()
public SearchResultsCompass.Page(org.compass.core.CompassHits[] hits)
hits
- Method Detail |
---|
public int getFrom()
public void setFrom(int from)
from
- The from to set.public boolean isSelected()
public void setSelected(boolean selected)
selected
- The selected to set.public int getSize()
public void setSize(int size)
size
- The size to set.public boolean isLoaded()
public org.compass.core.CompassHits[] getHits()
public void setHits(org.compass.core.CompassHits[] hits)
hits
- The hits to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |