Class FieldTermStack.TermInfo
- java.lang.Object
-
- org.apache.lucene.search.vectorhighlight.FieldTermStack.TermInfo
-
- All Implemented Interfaces:
java.lang.Comparable<FieldTermStack.TermInfo>
- Enclosing class:
- FieldTermStack
public static class FieldTermStack.TermInfo extends java.lang.Object implements java.lang.Comparable<FieldTermStack.TermInfo>
Single term with its position/offsets in the document and IDF weight. It is Comparable but considers only position.
-
-
Constructor Summary
Constructors Constructor Description TermInfo(java.lang.String text, int startOffset, int endOffset, int position, float weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FieldTermStack.TermInfo o)
boolean
equals(java.lang.Object obj)
int
getEndOffset()
FieldTermStack.TermInfo
getNext()
Returns the next TermInfo at this same position.int
getPosition()
int
getStartOffset()
java.lang.String
getText()
float
getWeight()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getNext
public FieldTermStack.TermInfo getNext()
Returns the next TermInfo at this same position. This is a circular list!
-
getText
public java.lang.String getText()
-
getStartOffset
public int getStartOffset()
-
getEndOffset
public int getEndOffset()
-
getPosition
public int getPosition()
-
getWeight
public float getWeight()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(FieldTermStack.TermInfo o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<FieldTermStack.TermInfo>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-