org.terrier.terms
Class DumpTerm

java.lang.Object
  extended by org.terrier.terms.DumpTerm
All Implemented Interfaces:
TermPipeline

public class DumpTerm
extends java.lang.Object
implements TermPipeline

Useful development phase TermPipeline object that allows prints every term that passes through it to System.err


Constructor Summary
DumpTerm(TermPipeline _next)
          Construct a new DumpTerm objecy
 
Method Summary
 void processTerm(java.lang.String t)
          Displays the given on STDERR, then passes onto next pipeline object.
 boolean reset()
          Implements the default operation for all TermPipeline subclasses; By default do nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpTerm

public DumpTerm(TermPipeline _next)
Construct a new DumpTerm objecy

Method Detail

processTerm

public void processTerm(java.lang.String t)
Displays the given on STDERR, then passes onto next pipeline object.

Specified by:
processTerm in interface TermPipeline
Parameters:
t - String the term to pass onto next pipeline object

reset

public boolean reset()
Implements the default operation for all TermPipeline subclasses; By default do nothing. This method should be overrided by any TermPipeline that want to implements doc/query oriented lifecycle.

Specified by:
reset in interface TermPipeline
Returns:
return how the reset has gone


Terrier 3.5. Copyright © 2004-2011 University of Glasgow