Package org.terrier.matching
Class FatResultsMatching
- java.lang.Object
-
- org.terrier.matching.FatResultsMatching
-
- All Implemented Interfaces:
Matching
public class FatResultsMatching extends java.lang.Object implements Matching
Reads aFatResultSetserialized to disk byWritableOutputFormat. Properties:- fat.results.matching.file - filename of the FatResultSet to read. Mandatory.
- fat.results.matching.max.results - maximum results to return for a given query.
- Since:
- 4.0
- Author:
- Craig Macdonald
-
-
Constructor Summary
Constructors Constructor Description FatResultsMatching(java.lang.String _filename, int _maxResults)FatResultsMatching(Index i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInfo()Return a human readable description of this Matching classResultSetmatch(java.lang.String queryNumber, MatchingQueryTerms queryTerms)Get a ResultSet for the given query terms.voidsetCollectionStatistics(CollectionStatistics cs)Update the collection statistics being used by this matching instance
-
-
-
Constructor Detail
-
FatResultsMatching
public FatResultsMatching(java.lang.String _filename, int _maxResults) throws java.io.IOException- Throws:
java.io.IOException
-
FatResultsMatching
public FatResultsMatching(Index i) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getInfo
public java.lang.String getInfo()
Description copied from interface:MatchingReturn a human readable description of this Matching class
-
match
public ResultSet match(java.lang.String queryNumber, MatchingQueryTerms queryTerms) throws java.io.IOException
Description copied from interface:MatchingGet a ResultSet for the given query terms.
-
setCollectionStatistics
public void setCollectionStatistics(CollectionStatistics cs)
Description copied from interface:MatchingUpdate the collection statistics being used by this matching instance- Specified by:
setCollectionStatisticsin interfaceMatching- Parameters:
cs- CollectionStatistics to use during matching
-
-