|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.search.CachedResultSet
Constructor Summary | |
CachedResultSet(QuerySpecification spec,
ResultSet results,
int size)
|
Method Summary | |
void |
close()
Releases any resources associated with this result set. |
long |
getCount()
Returns the total number of results in the set |
Iterator |
getDocuments(long offset,
long count)
Gets an iterator for the page of results between offset and offset+count |
String |
getEngine()
Return the query engine used to generate the result set |
long |
getQueryTime()
Return the elapsed time for generating this result set from the original query specification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CachedResultSet(QuerySpecification spec, ResultSet results, int size)
Method Detail |
public Iterator getDocuments(long offset, long count)
offset
and offset+count
getDocuments
in interface ResultSet
offset
- the first hit, starting from 0count
- the maximum number of results to return
java.lang.IllegalOperationException
- if close has been calledpublic long getCount()
getCount
in interface ResultSet
public String getEngine()
getEngine
in interface ResultSet
public long getQueryTime()
getQueryTime
in interface ResultSet
public void close()
close
in interface ResultSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |