anl.aida
Class TermsTest.TestTermCallback
java.lang.Object
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
|
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 |
terms
java.util.List<java.lang.String> terms
TermsTest.TestTermCallback
TermsTest.TestTermCallback()
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 collectionterm
- 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 scoredoc
- the document itselffreq
- the frequency count of the term in the documentscore
- the term score for the document