com.sun.labs.minion.pipeline
Class BlurbStage

java.lang.Object
  extended by com.sun.labs.minion.pipeline.StageAdapter
      extended by com.sun.labs.minion.pipeline.BlurbStage
All Implemented Interfaces:
Stage, PipelineStage, com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

public class BlurbStage
extends StageAdapter

This stages removes certain stop-like words from the review portion of a book document.


Field Summary
protected static boolean inReview
           
protected static java.lang.String logTag
           
protected  java.util.HashSet stopWords
           
 
Fields inherited from class com.sun.labs.minion.pipeline.StageAdapter
name
 
Constructor Summary
BlurbStage(Stage d, java.util.HashSet stopWords)
           
 
Method Summary
 void endField(FieldInfo fi)
          Processes the event that occurs at the end of a field.
 Stage getDownstream()
          Gets the downstream stage of this stage.
 void setDownstream(Stage s)
          Sets the downstream stage of this stage.
 void startField(FieldInfo fi)
          Processes the event that occurs at the start of a field.
 void token(Token t)
          Processes a token from further up the pipeline.
 
Methods inherited from class com.sun.labs.minion.pipeline.StageAdapter
defineField, dump, endDocument, getName, newProperties, punctuation, savedData, setName, shutdown, startDocument, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stopWords

protected java.util.HashSet stopWords

logTag

protected static java.lang.String logTag

inReview

protected static boolean inReview
Constructor Detail

BlurbStage

public BlurbStage(Stage d,
                  java.util.HashSet stopWords)
Method Detail

setDownstream

public void setDownstream(Stage s)
Description copied from interface: Stage
Sets the downstream stage of this stage.

Specified by:
setDownstream in interface Stage
Overrides:
setDownstream in class StageAdapter

getDownstream

public Stage getDownstream()
Description copied from interface: Stage
Gets the downstream stage of this stage.

Specified by:
getDownstream in interface Stage
Overrides:
getDownstream in class StageAdapter

startField

public void startField(FieldInfo fi)
Processes the event that occurs at the start of a field.

Specified by:
startField in interface Stage
Specified by:
startField in interface PipelineStage
Overrides:
startField in class StageAdapter
Parameters:
fi - The FieldInfo object that describes the field that is starting.

token

public void token(Token t)
Processes a token from further up the pipeline.

Specified by:
token in interface Stage
Overrides:
token in class StageAdapter
Parameters:
t - The token to process.

endField

public void endField(FieldInfo fi)
Processes the event that occurs at the end of a field.

Specified by:
endField in interface Stage
Specified by:
endField in interface PipelineStage
Overrides:
endField in class StageAdapter
Parameters:
fi - The FieldInfo object that describes the field that is ending.