Class results.ResultSet
All Packages Class Hierarchy This Package Previous Next Index
Class results.ResultSet
java.lang.Object
|
+----results.ResultSet
- public class ResultSet
- extends Object
The results set produced from a STARTS query
-
ResultSet(Query, int)
- Create a new results set
-
AddNewDocument(Document)
- Add a new document to the result set
-
GetDocuments()
- Return the vector of documents in the result set
-
GetSortedDocuments()
- Return the vector of sorted documents in the result set
-
MinScoreCheck()
- Remove from the document list those documents whose score is
less than the minimum score for the query.
-
ResultSetToSOIF()
- Return a SOIFObject that is the SOIF representation of this
result set.
-
SortResults(Field[], boolean[])
- perform a multi-key sort based on the sort specification (SortFields and
SortDescending) in the query context for this resultset.
-
TrimResults()
- Trim the result set down to the size specified for the query
ResultSet
public ResultSet(Query query,
int numDocuments)
- Create a new results set
- Parameters:
- query - query context of the result set
- numDocuments - number of documents in the results set
AddNewDocument
public void AddNewDocument(Document document)
- Add a new document to the result set
GetDocuments
public Vector GetDocuments()
- Return the vector of documents in the result set
- Returns:
- the Vector of documents in the result set.
GetSortedDocuments
public Vector GetSortedDocuments()
- Return the vector of sorted documents in the result set
- Returns:
- a sorted vector of the documents in the result set.
ResultSetToSOIF
public SOIFObject ResultSetToSOIF()
- Return a SOIFObject that is the SOIF representation of this
result set.
- Returns:
- a SOIF object representing the data in the reslt set.
MinScoreCheck
public int MinScoreCheck()
- Remove from the document list those documents whose score is
less than the minimum score for the query.
- Returns:
- the number of documents remaining after the culling
process.
TrimResults
public int TrimResults()
- Trim the result set down to the size specified for the query
- Returns:
- the number of documents remaining after the trimming
process.
SortResults
public void SortResults(Field sortFields[],
boolean sortDescending[]) throws SourceException
- perform a multi-key sort based on the sort specification (SortFields and
SortDescending) in the query context for this resultset.
- Throws: SourceException
- if an error occurs at the source
deriving the information necessary for the sort.
All Packages Class Hierarchy This Package Previous Next Index