org.apache.lucene.index
public class TermVectorOffsetInfo extends Object
Field Summary | |
---|---|
static TermVectorOffsetInfo[] | EMPTY_OFFSET_INFO
Convenience declaration when creating a TermPositionVector that stores only position information. |
Constructor Summary | |
---|---|
TermVectorOffsetInfo() | |
TermVectorOffsetInfo(int startOffset, int endOffset) |
Method Summary | |
---|---|
boolean | equals(Object o)
Two TermVectorOffsetInfos are equals if both the start and end offsets are the same |
int | getEndOffset()
The accessor for the ending offset for the term |
int | getStartOffset()
The accessor for the starting offset of the term.
|
int | hashCode() |
void | setEndOffset(int endOffset) |
void | setStartOffset(int startOffset) |
Parameters: o The comparison Object
Returns: true if both getStartOffset and getEndOffset are the same for both objects.
Returns: The offset
Returns: The offset