|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.pipeline.StageAdapter
com.sun.labs.minion.pipeline.BlurbStage
public class BlurbStage
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 |
|---|
protected java.util.HashSet stopWords
protected static java.lang.String logTag
protected static boolean inReview
| Constructor Detail |
|---|
public BlurbStage(Stage d,
java.util.HashSet stopWords)
| Method Detail |
|---|
public void setDownstream(Stage s)
Stage
setDownstream in interface StagesetDownstream in class StageAdapterpublic Stage getDownstream()
Stage
getDownstream in interface StagegetDownstream in class StageAdapterpublic void startField(FieldInfo fi)
startField in interface StagestartField in interface PipelineStagestartField in class StageAdapterfi - The FieldInfo object that describes
the field that is starting.public void token(Token t)
token in interface Stagetoken in class StageAdaptert - The token to process.public void endField(FieldInfo fi)
endField in interface StageendField in interface PipelineStageendField in class StageAdapterfi - The FieldInfo object that describes
the field that is ending.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||