public static class FieldPhraseList.WeightedPhraseInfo extends Object implements Comparable<FieldPhraseList.WeightedPhraseInfo>
Modifier and Type | Class and Description |
---|---|
static class |
FieldPhraseList.WeightedPhraseInfo.Toffs
Term offsets (start + end)
|
Constructor and Description |
---|
WeightedPhraseInfo(Collection<FieldPhraseList.WeightedPhraseInfo> toMerge)
Merging constructor.
|
WeightedPhraseInfo(LinkedList<FieldTermStack.TermInfo> terms,
float boost) |
WeightedPhraseInfo(LinkedList<FieldTermStack.TermInfo> terms,
float boost,
int seqnum) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FieldPhraseList.WeightedPhraseInfo other) |
boolean |
equals(Object obj) |
float |
getBoost() |
int |
getEndOffset() |
int |
getSeqnum() |
int |
getStartOffset() |
List<FieldTermStack.TermInfo> |
getTermsInfos() |
List<FieldPhraseList.WeightedPhraseInfo.Toffs> |
getTermsOffsets() |
String |
getText()
Text of the match, calculated on the fly.
|
int |
hashCode() |
boolean |
isOffsetOverlap(FieldPhraseList.WeightedPhraseInfo other) |
String |
toString() |
public WeightedPhraseInfo(LinkedList<FieldTermStack.TermInfo> terms, float boost)
public WeightedPhraseInfo(LinkedList<FieldTermStack.TermInfo> terms, float boost, int seqnum)
public WeightedPhraseInfo(Collection<FieldPhraseList.WeightedPhraseInfo> toMerge)
public String getText()
public List<FieldPhraseList.WeightedPhraseInfo.Toffs> getTermsOffsets()
public float getBoost()
public List<FieldTermStack.TermInfo> getTermsInfos()
public int getStartOffset()
public int getEndOffset()
public boolean isOffsetOverlap(FieldPhraseList.WeightedPhraseInfo other)
public int getSeqnum()
public int compareTo(FieldPhraseList.WeightedPhraseInfo other)
compareTo
in interface Comparable<FieldPhraseList.WeightedPhraseInfo>
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.