org.terrier.terms
Class BaseTermPipelineAccessor

java.lang.Object
  extended by org.terrier.terms.BaseTermPipelineAccessor
All Implemented Interfaces:
TermPipeline, TermPipelineAccessor

public class BaseTermPipelineAccessor
extends java.lang.Object
implements TermPipeline, TermPipelineAccessor

A base implementation for TermPipelineAccessor

Since:
3.0
Author:
Craig Macondald

Field Summary
protected static org.apache.log4j.Logger logger
           
static java.lang.String NAMESPACE_PIPELINE
          The default namespace for TermPipeline modules to be loaded from
protected  java.lang.String pipelineOutput
          This class is used as a TermPipelineAccessor, and this variable stores the result of the TermPipeline run for that term.
 
Constructor Summary
BaseTermPipelineAccessor(java.lang.String... pipes)
          Construct a term pipeline using the specified class names
 
Method Summary
 java.lang.String pipelineTerm(java.lang.String t)
          A term pipeline accessor
 void processTerm(java.lang.String t)
          Make this object a term pipeline implementor.
 boolean reset()
          This method implements the specific rest option needed to implements query or doc oriented policy.
 boolean resetPipeline()
          Reset all the pipeline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

NAMESPACE_PIPELINE

public static final java.lang.String NAMESPACE_PIPELINE
The default namespace for TermPipeline modules to be loaded from

See Also:
Constant Field Values

pipelineOutput

protected java.lang.String pipelineOutput
This class is used as a TermPipelineAccessor, and this variable stores the result of the TermPipeline run for that term.

Constructor Detail

BaseTermPipelineAccessor

public BaseTermPipelineAccessor(java.lang.String... pipes)
Construct a term pipeline using the specified class names

Method Detail

processTerm

public void processTerm(java.lang.String t)
Make this object a term pipeline implementor.

Specified by:
processTerm in interface TermPipeline
Parameters:
t - String the term to process.
See Also:
TermPipeline

reset

public boolean reset()
This method implements the specific rest option needed to implements query or doc oriented policy.

Specified by:
reset in interface TermPipeline
Returns:
results of the operation

pipelineTerm

public java.lang.String pipelineTerm(java.lang.String t)
A term pipeline accessor

Specified by:
pipelineTerm in interface TermPipelineAccessor
Parameters:
t - String the term to process.
Returns:
String the processed term.

resetPipeline

public boolean resetPipeline()
Reset all the pipeline.

Specified by:
resetPipeline in interface TermPipelineAccessor
Returns:
return how the reset operation has gone over all the stage


Terrier 3.5. Copyright © 2004-2011 University of Glasgow