public class TermVectorOffsetInfo extends Object implements Serializable
TermPositionVector
's
offset information. This offset information is the character offset as set during the Analysis phase (and thus may not be the actual offset in the
original content).Modifier and Type | Field and Description |
---|---|
static TermVectorOffsetInfo[] |
EMPTY_OFFSET_INFO
Convenience declaration when creating a
TermPositionVector that stores only position information. |
Constructor and Description |
---|
TermVectorOffsetInfo() |
TermVectorOffsetInfo(int startOffset,
int endOffset) |
Modifier and Type | Method and Description |
---|---|
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) |
public static final transient TermVectorOffsetInfo[] EMPTY_OFFSET_INFO
TermPositionVector
that stores only position information.public TermVectorOffsetInfo()
public TermVectorOffsetInfo(int startOffset, int endOffset)
public int getEndOffset()
public void setEndOffset(int endOffset)
public int getStartOffset()
public void setStartOffset(int startOffset)
public boolean equals(Object o)
equals
in class Object
o
- The comparison ObjectgetStartOffset()
and getEndOffset()
are the same for both objects.