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 int
MARGIN_DEFAULT
static int
MIN_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 FieldFragList
createFieldFragList(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:FragListBuilder
create a FieldFragList.- Specified by:
createFieldFragList
in interfaceFragListBuilder
- Parameters:
fieldPhraseList
- FieldPhraseList objectfragCharSize
- the length (number of chars) of a fragment- Returns:
- the created FieldFragList object
-
-