org.terrier.terms
Class NoOp

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

public class NoOp
extends Object
implements TermPipeline

A do-nothing term pipeline object. Simply passes the term onto the next component of the pipeline.

Author:
Craig Macdonald

Field Summary
protected  TermPipeline next
          The implementation of a term pipeline.
 
Constructor Summary
NoOp(TermPipeline _next)
          Constructs an instance of the class, given the next component in the pipeline.
 
Method Summary
 void processTerm(String t)
          Pass the term onto the next term pipeline object, without making any changes to it.
 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
 

Field Detail

next

protected final TermPipeline next
The implementation of a term pipeline.

Constructor Detail

NoOp

public NoOp(TermPipeline _next)
Constructs an instance of the class, given the next component in the pipeline.

Parameters:
_next - TermPipeline the next component in the term pipeline.
Method Detail

processTerm

public final void processTerm(String t)
Pass the term onto the next term pipeline object, without making any changes to it.

Specified by:
processTerm in interface TermPipeline
Parameters:
t - The term

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.6. Copyright © 2004-2011 University of Glasgow