|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.beanindex.search.Hits
This Hits is not Serializable and It is deliberately done so. Keeping Hits in a HttpSession may result in exceptions if Session persistance enabled on the WebServer. Please use a Wrapper class with transient variable holding Hits for storing it in HttpSession. If result hit number is larger ex 5000 and more, use searchresult as a throwaway type object. Each hit id takes 4 bytes of RAM. Keeping searchresult in HttpSession may result in higher memory usage.
| Method Summary | |
java.lang.Object[] |
getBeans(Index index)
Returns all the beans in this result |
java.lang.Object[] |
getBeans(Index index,
int offset,
int length)
returns the Beans |
int[] |
getHitBeanIds(Index index)
Returns the Bean ids Bean ids are assigned and returned in FIFO order. |
int[] |
getHitBeanIds(Index index,
int offset,
int length)
returns the Bean ids ids are in FIFO order |
int |
getHitCount(Index index)
returns the size of the search result for the index |
int |
getTotalHitCount()
Returns the size of the search result |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.Object[] getBeans(Index index)
throws StaleObjectException,
BeanIndexException
index -
StaleObjectException
BeanIndexException
public java.lang.Object[] getBeans(Index index,
int offset,
int length)
throws StaleObjectException,
BeanIndexException
index - offset - length -
StaleObjectException
BeanIndexExceptionpublic int[] getHitBeanIds(Index index)
index -
public int[] getHitBeanIds(Index index,
int offset,
int length)
index - offset - length -
public int getTotalHitCount()
public int getHitCount(Index index)
index -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||