|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Stage
| Method Summary | |
|---|---|
FieldInfo |
defineField(FieldInfo fi)
Defines a field into which an application will index data. |
void |
dump(IndexConfig iC)
Tells a stage that its data must be dumped to the index. |
void |
endDocument(long size)
Processes the event that comes at the end of a document. |
void |
endField(FieldInfo fi)
Processes the event that occurs at the end of a field. |
Stage |
getDownstream()
Gets the downstream stage of this stage. |
java.lang.String |
getName()
Gets the configuration name of this stage. |
void |
punctuation(Token p)
Processes some punctuation from further up the pipeline. |
void |
savedData(java.lang.Object sd)
Processes saved data from further up the pipeline. |
void |
setDownstream(Stage s)
Sets the downstream stage of this stage. |
void |
shutdown(IndexConfig iC)
Tells a stage that it needs to shutdown, terminating any processing that it is doing first. |
void |
startDocument(java.lang.String key)
Process the event that occurs at the start of a document. |
void |
startField(FieldInfo fi)
Processes the event that occurs at the start of a field. |
void |
text(char[] t,
int b,
int e)
Processes some text from further up the pipeline. |
void |
token(Token t)
Processes a token from further up the pipeline. |
| Methods inherited from interface com.sun.labs.util.props.Configurable |
|---|
newProperties |
| Method Detail |
|---|
java.lang.String getName()
newProperties method of the Configurable interface.
void setDownstream(Stage s)
Stage getDownstream()
FieldInfo defineField(FieldInfo fi)
fi - The FieldInfo object that describes
the field we want defined.
void startDocument(java.lang.String key)
key - The document key for this document.void startField(FieldInfo fi)
startField in interface PipelineStagefi - The FieldInfo object that describes
the field that is starting.
void text(char[] t,
int b,
int e)
text in interface PipelineStaget - The text to tokenize.b - The beginning position in the text buffer.e - The ending position in the text buffer.void token(Token t)
t - The token to process.void punctuation(Token p)
p - The punctuation to process.void savedData(java.lang.Object sd)
savedData in interface PipelineStagesd - The data to process.void endField(FieldInfo fi)
endField in interface PipelineStagefi - The FieldInfo object that describes
the field that is ending.void endDocument(long size)
size - The size of the data that was processed for this file.void dump(IndexConfig iC)
iC - The configuration for the index, which can be used to
retrieve things like the index directory.void shutdown(IndexConfig iC)
iC - The configuration for the index, which can be used to
retrieve things like the index directory.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||