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 aFatResultSet
serialized 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.String
getInfo()
Return a human readable description of this Matching classResultSet
match(java.lang.String queryNumber, MatchingQueryTerms queryTerms)
Get a ResultSet for the given query terms.void
setCollectionStatistics(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:Matching
Return 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:Matching
Get a ResultSet for the given query terms.
-
setCollectionStatistics
public void setCollectionStatistics(CollectionStatistics cs)
Description copied from interface:Matching
Update the collection statistics being used by this matching instance- Specified by:
setCollectionStatistics
in interfaceMatching
- Parameters:
cs
- CollectionStatistics to use during matching
-
-