public class SingleFragListBuilder extends Object implements FragListBuilder
FragListBuilder
that generates one FieldFragList.WeightedFragInfo
object.
Typical use case of this class is that you can get an entire field contents
by using both of this class and SimpleFragmentsBuilder
.FastVectorHighlighter h = new FastVectorHighlighter( true, true, new SingleFragListBuilder(), new SimpleFragmentsBuilder() );
Constructor and Description |
---|
SingleFragListBuilder() |
Modifier and Type | Method and Description |
---|---|
FieldFragList |
createFieldFragList(FieldPhraseList fieldPhraseList,
int fragCharSize)
create a FieldFragList.
|
public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize)
FragListBuilder
createFieldFragList
in interface FragListBuilder
fieldPhraseList
- FieldPhraseList objectfragCharSize
- the length (number of chars) of a fragmentCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.