Class SimpleFragListBuilder
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.SimpleFragListBuilder
-
- All Implemented Interfaces:
FragListBuilder
public class SimpleFragListBuilder extends Object implements FragListBuilder
A simple implementation ofFragListBuilder.
-
-
Field Summary
Fields Modifier and Type Field Description static intMARGIN_DEFAULTstatic intMIN_FRAG_CHAR_SIZE_FACTOR
-
Constructor Summary
Constructors Constructor Description SimpleFragListBuilder()SimpleFragListBuilder(int margin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldFragListcreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)create a FieldFragList.
-
-
-
Field Detail
-
MARGIN_DEFAULT
public static final int MARGIN_DEFAULT
- See Also:
- Constant Field Values
-
MIN_FRAG_CHAR_SIZE_FACTOR
public static final int MIN_FRAG_CHAR_SIZE_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFieldFragList
public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)
Description copied from interface:FragListBuildercreate a FieldFragList.- Specified by:
createFieldFragListin interfaceFragListBuilder- Parameters:
fieldPhraseList- FieldPhraseList objectfragCharSize- the length (number of chars) of a fragment- Returns:
- the created FieldFragList object
-
-