Class RDBMSSearchResult
- java.lang.Object
-
- net.ontopia.infoset.fulltext.impl.rdbms.RDBMSSearchResult
-
- All Implemented Interfaces:
SearchResultIF
public class RDBMSSearchResult extends Object implements SearchResultIF
INTERNAL: RDBMS search result implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<RDBMSDocument>
docs
protected float[]
scores
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentIF
getDocument(int hit)
INTERNAL: Returns the document located at the given index.float
getScore(int hit)
INTERNAL: Returns the score of the document located at the given index.int
hits()
INTERNAL: Returns the number of hits (documents) in the search result.
-
-
-
Field Detail
-
docs
protected List<RDBMSDocument> docs
-
scores
protected float[] scores
-
-
Method Detail
-
getDocument
public DocumentIF getDocument(int hit) throws IOException
Description copied from interface:SearchResultIF
INTERNAL: Returns the document located at the given index.- Specified by:
getDocument
in interfaceSearchResultIF
- Throws:
IOException
-
getScore
public float getScore(int hit) throws IOException
Description copied from interface:SearchResultIF
INTERNAL: Returns the score of the document located at the given index.- Specified by:
getScore
in interfaceSearchResultIF
- Throws:
IOException
-
hits
public int hits()
Description copied from interface:SearchResultIF
INTERNAL: Returns the number of hits (documents) in the search result.- Specified by:
hits
in interfaceSearchResultIF
-
-