public class TextFragment extends Object
| Constructor and Description |
|---|
TextFragment(CharSequence markedUpText,
int textStartPos,
int fragNum) |
TextFragment(StringBuffer markedUpText,
int textStartPos,
int fragNum)
Deprecated.
Use
TextFragment(CharSequence, int, int) instead.
This constructor will be removed in Lucene 4.0 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
follows(TextFragment fragment) |
int |
getFragNum() |
float |
getScore() |
void |
merge(TextFragment frag2) |
String |
toString() |
public TextFragment(CharSequence markedUpText, int textStartPos, int fragNum)
@Deprecated public TextFragment(StringBuffer markedUpText, int textStartPos, int fragNum)
TextFragment(CharSequence, int, int) instead.
This constructor will be removed in Lucene 4.0public float getScore()
public void merge(TextFragment frag2)
frag2 - Fragment to be merged into this onepublic boolean follows(TextFragment fragment)
fragment - public int getFragNum()