Package org.apache.lucene.monitor
Class HighlightsMatch.Hit
java.lang.Object
org.apache.lucene.monitor.HighlightsMatch.Hit
- All Implemented Interfaces:
Comparable<HighlightsMatch.Hit>
- Enclosing class:
- HighlightsMatch
Represents an individual hit
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
The end offsetfinal int
The end positionsfinal int
The start offsetfinal int
The start position -
Constructor Summary
-
Method Summary
-
Field Details
-
startPosition
public final int startPositionThe start position -
startOffset
public final int startOffsetThe start offset -
endPosition
public final int endPositionThe end positions -
endOffset
public final int endOffsetThe end offset
-
-
Constructor Details
-
Hit
public Hit(int startPosition, int startOffset, int endPosition, int endOffset)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<HighlightsMatch.Hit>
-