|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.index.TermVectorOffsetInfo
public class TermVectorOffsetInfo
The TermVectorOffsetInfo class holds information pertaining to a Term in a 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).
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final transient TermVectorOffsetInfo[] EMPTY_OFFSET_INFO
TermPositionVector that stores only position information.
| Constructor Detail |
|---|
public TermVectorOffsetInfo()
public TermVectorOffsetInfo(int startOffset,
int endOffset)
| Method Detail |
|---|
public int getEndOffset()
public void setEndOffset(int endOffset)
public int getStartOffset()
public void setStartOffset(int startOffset)
public boolean equals(Object o)
equals in class Objecto - The comparison Object
getStartOffset() and getEndOffset() are the same for both objects.public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||