|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Stage
setDownstream
in class StageAdapter
public Stage getDownstream()
Stage
getDownstream
in interface Stage
getDownstream
in class StageAdapter
public void startField(FieldInfo fi)
startField
in interface Stage
startField
in interface PipelineStage
startField
in class StageAdapter
fi
- The FieldInfo
object that describes
the field that is starting.public void token(Token t)
token
in interface Stage
token
in class StageAdapter
t
- The token to process.public void endField(FieldInfo fi)
endField
in interface Stage
endField
in interface PipelineStage
endField
in class StageAdapter
fi
- 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 |