Class FatResultsMatching

  • All Implemented Interfaces:
    Matching

    public class FatResultsMatching
    extends java.lang.Object
    implements Matching
    Reads a FatResultSet serialized to disk by WritableOutputFormat. 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 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
        Specified by:
        getInfo in interface Matching
      • 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.
        Specified by:
        match in interface Matching
        Parameters:
        queryNumber - - some ID of the query
        queryTerms - - query terms to match
        Returns:
        ResultSet - the matched results
        Throws:
        java.io.IOException - if a problem occurs during matching
      • 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 interface Matching
        Parameters:
        cs - CollectionStatistics to use during matching