Package org.terrier.terms
Class NoOp
- java.lang.Object
-
- org.terrier.terms.NoOp
-
- All Implemented Interfaces:
TermPipeline
public class NoOp extends java.lang.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
Fields Modifier and Type Field Description protected TermPipeline
next
The implementation of a term pipeline.
-
Constructor Summary
Constructors Constructor Description NoOp(TermPipeline _next)
Constructs an instance of the class, given the next component in the pipeline.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processTerm(java.lang.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.
-
-
-
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(java.lang.String t)
Pass the term onto the next term pipeline object, without making any changes to it.- Specified by:
processTerm
in interfaceTermPipeline
- 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 interfaceTermPipeline
- Returns:
- return how the reset has gone
-
-