anl.aida
Class TermsTest.TestTermCallback

java.lang.Object
  extended by anl.aida.TermsTest.TestTermCallback
All Implemented Interfaces:
ScoredTermCallback
Enclosing class:
TermsTest

 class TermsTest.TestTermCallback
extends java.lang.Object
implements ScoredTermCallback


Field Summary
(package private)  java.util.List<java.lang.String> terms
           
 
Constructor Summary
TermsTest.TestTermCallback()
           
 
Method Summary
 void apply(int docIndex, MIFSDocument doc, int freq, float score)
          Notifies the implementor of a document score for the term specified in the last call to newTerm.
 void newTerm(int termIndex, MIFSTerm term)
          Called when a new term is encountered during iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

terms

java.util.List<java.lang.String> terms
Constructor Detail

TermsTest.TestTermCallback

TermsTest.TestTermCallback()
Method Detail

newTerm

public void newTerm(int termIndex,
                    MIFSTerm term)
Description copied from interface: ScoredTermCallback
Called when a new term is encountered during iteration.

Specified by:
newTerm in interface ScoredTermCallback
Parameters:
termIndex - the index of the term in the collection
term - the term itself

apply

public void apply(int docIndex,
                  MIFSDocument doc,
                  int freq,
                  float score)
Description copied from interface: ScoredTermCallback
Notifies the implementor of a document score for the term specified in the last call to newTerm.

Specified by:
apply in interface ScoredTermCallback
Parameters:
docIndex - the index of the document for which this is the term score
doc - the document itself
freq - the frequency count of the term in the document
score - the term score for the document