|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sconman.IndexManager.SearchResults
public static class IndexManager.SearchResults
Default ISearchResults
implementation
Field Summary | |
---|---|
(package private) static java.text.NumberFormat |
nf
|
(package private) Project |
prj
|
(package private) net.sf.sconman.index.IResultSet |
rset
|
Constructor Summary | |
---|---|
IndexManager.SearchResults(Project prj,
net.sf.sconman.index.IResultSet rset)
|
Method Summary | |
---|---|
void |
close()
Closes the search |
(package private) Content |
getContent(int index)
|
Content |
getContent(User user,
int index)
Returns the content at the index position of the results
list. |
int |
getLength()
Returns the total amount of matching contents |
int |
getOriginalLength()
(Optional) Returns the original total amount of matching contents when paging |
float |
getScore(int index)
Returns the search score for the content index in the results list |
java.lang.String |
getScoreAsPercentile(int index,
int decimals)
|
long |
getSearchTime()
Returns the time to perform the search |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static java.text.NumberFormat nf
Project prj
net.sf.sconman.index.IResultSet rset
Constructor Detail |
---|
IndexManager.SearchResults(Project prj, net.sf.sconman.index.IResultSet rset)
Method Detail |
---|
public long getSearchTime()
ISearchResults
getSearchTime
in interface ISearchResults
public int getLength()
ISearchResults
getLength
in interface ISearchResults
public int getOriginalLength()
ISearchResults
getOriginalLength
in interface ISearchResults
public Content getContent(User user, int index) throws SCMStorageException
ISearchResults
index
position of the results
list.
getContent
in interface ISearchResults
user
- The user that requests the contentindex
- Content index in the results list, between 0 and ISearchResults.getLength()
SCMStorageException
- Thrown if there's a problem retrieving the content
description from the index.Content getContent(int index) throws SCMStorageException
SCMStorageException
public float getScore(int index) throws SCMStorageException
ISearchResults
getScore
in interface ISearchResults
index
- Content index in the results list, between 0 and ISearchResults.getLength()
SCMStorageException
- Thrown if there's a problem retrieving the score
from the index.public java.lang.String getScoreAsPercentile(int index, int decimals) throws SCMStorageException
getScoreAsPercentile
in interface ISearchResults
SCMStorageException
public void close() throws SCMStorageException
ISearchResults
close
in interface ISearchResults
SCMStorageException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |