anl.aida.query
Class FrequencyCountQuery

java.lang.Object
  extended by anl.aida.query.FrequencyCountQuery
All Implemented Interfaces:
Query

public class FrequencyCountQuery
extends java.lang.Object
implements Query

Queries a scored terms collection for the frequency count (number of documents it appears in) of some particular term.

Author:
Nick Collier

Field Summary
private  java.lang.String term
           
 
Constructor Summary
FrequencyCountQuery(java.lang.String term)
           
 
Method Summary
 float execute(anl.aida.core.ScoredTermsCollection stc)
          Executes this query on the specified ScoredTermsCollection and returns a numeric value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

term

private java.lang.String term
Constructor Detail

FrequencyCountQuery

public FrequencyCountQuery(java.lang.String term)
Parameters:
term -
Method Detail

execute

public float execute(anl.aida.core.ScoredTermsCollection stc)
Description copied from interface: Query
Executes this query on the specified ScoredTermsCollection and returns a numeric value.

Specified by:
execute in interface Query
Parameters:
stc - the collection to execute against
Returns:
the result of the query.