|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PipelineStage
The interface to a stage in the indexing pipeline. When using a
CustomAnalyzer for indexing, these methods are available to
control the construction of a document. Generally speaking,
your analyzer is called once for each field and the pipeline is
ready to receive the text contained in that field when the
text(char[], int, int)
method is called. However, if your analzyer determines
that another field value is encountered during processing this
field, it may use startField(com.sun.labs.minion.FieldInfo)
to effectively push a
new current field onto the stack. Any text passed to the stage
will then be considered to be part of the new field. Calling
endField(com.sun.labs.minion.FieldInfo)
will pop the new field off the stack and
any further text will be considered to be part of the original
field for which the analyzer was invoked.
Method Summary | |
---|---|
void |
endField(FieldInfo field)
Instructs the pipeline to stop collecting data for a field |
void |
savedData(java.lang.Object sd)
Saves some data verbatim in the field store. |
void |
startField(FieldInfo field)
Instructs the pipeline to begin collecting data for a different field |
void |
text(char[] t,
int b,
int e)
Sends some text to be indexed as part of the field. |
Method Detail |
---|
void startField(FieldInfo field)
field
- the object describing the field to start. The field must
already be defined in the index configuration.void text(char[] t, int b, int e)
t
- The text to store and/or tokenize.b
- The beginning position in the text buffer.e
- The ending position in the text buffer.void savedData(java.lang.Object sd)
text(char[], int, int)
method is not used.
sd
- the data to storevoid endField(FieldInfo field)
field
- the object describing the field that is ending
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |