|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MarkCollector
Receives callbacks to mark terms, context start/end, and span start/end
notifications from ContextMarker
.
Created: Dec 14, 2004
Method Summary | |
---|---|
void |
beginContext(MarkPos pos,
Span span)
If context marking is enabled, this is called to mark the start of the context surrounding a hit. |
void |
beginField(MarkPos pos)
Marks the position of the very start of the field. |
void |
beginSpan(MarkPos pos,
Span span)
Marks the beginning of a hit. |
void |
endContext(MarkPos pos)
If context marking is enabled, this is called to mark the end of the context surrounding a hit. |
void |
endField(MarkPos pos)
Marks the very end of the field. |
void |
endSpan(MarkPos pos)
Marks the end of a hit. |
void |
term(MarkPos startPos,
MarkPos endPos,
String term)
Marks the start and end of a search term. |
Method Detail |
---|
void beginField(MarkPos pos)
void term(MarkPos startPos, MarkPos endPos, String term)
startPos
- start characterendPos
- end characterterm
- term text as found in the indexvoid beginContext(MarkPos pos, Span span)
beginSpan()
, one or more calls to
term()
, then a call to
endSpan()
, and finally a call to
endContext()
.
pos
- starting position for contextspan
- the hit for which context is being markedvoid beginSpan(MarkPos pos, Span span)
beginContext()
/
endContext()
pair. It will be followed by one or more calls to
term()
, then a call to
endSpan()
.
void endSpan(MarkPos pos)
beginSpan()
.
void endContext(MarkPos pos)
beginContext()
.
void endField(MarkPos pos)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |