org.terrier.querying
Class SimpleDecorate
java.lang.Object
org.terrier.querying.SimpleDecorate
- All Implemented Interfaces:
- PostFilter
public class SimpleDecorate
- extends java.lang.Object
- implements PostFilter
A simple decorator, which applies all metadata in the MetaIndex to each document on the way out.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDecorate
public SimpleDecorate()
filter
public final byte filter(Manager m,
SearchRequest srq,
ResultSet results,
int DocAtNumber,
int DocNo)
- Called for each result in the resultset, used to filter out unwanted results.
- Specified by:
filter
in interface PostFilter
- Parameters:
m
- The manager controlling this querysrq
- The search request being processedDocAtNumber
- which array index in the resultset have we reachedDocNo
- The document number of the currently being procesed result.
new_query
public void new_query(Manager m,
SearchRequest srq,
ResultSet rs)
- Called before the processing of a resultset using this PostFilter is applied.
Can be used to save information for the duration of the query.
- Specified by:
new_query
in interface PostFilter
- Parameters:
m
- The manager controlling this querysrq
- The search request being processedrs
- the resultset that is being iterated through
Terrier 3.5. Copyright © 2004-2011 University of Glasgow