|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.vectorhighlight.FieldFragList
public abstract class FieldFragList
FieldFragList has a list of "frag info" that is used by FragmentsBuilder class to create fragments (snippets).
Nested Class Summary | |
---|---|
static class |
FieldFragList.WeightedFragInfo
List of term offsets + weight for a frag info |
Constructor Summary | |
---|---|
FieldFragList(int fragCharSize)
a constructor. |
Method Summary | |
---|---|
abstract void |
add(int startOffset,
int endOffset,
List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
convert the list of WeightedPhraseInfo to WeightedFragInfo, then add it to the fragInfos |
List<FieldFragList.WeightedFragInfo> |
getFragInfos()
return the list of WeightedFragInfos. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldFragList(int fragCharSize)
fragCharSize
- the length (number of chars) of a fragmentMethod Detail |
---|
public abstract void add(int startOffset, int endOffset, List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
startOffset
- start offset of the fragmentendOffset
- end offset of the fragmentphraseInfoList
- list of WeightedPhraseInfo objectspublic List<FieldFragList.WeightedFragInfo> getFragInfos()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |