public class

TermVectorOffsetInfo

extends Object
implements Serializable
java.lang.Object
   ↳ org.apache.lucene.index.TermVectorOffsetInfo

Class Overview

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).

Summary

Fields
public static final TermVectorOffsetInfo[] EMPTY_OFFSET_INFO Convenience declaration when creating a TermPositionVector that stores only position information.
Public Constructors
TermVectorOffsetInfo()
TermVectorOffsetInfo(int startOffset, int endOffset)
Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final TermVectorOffsetInfo[] EMPTY_OFFSET_INFO

Convenience declaration when creating a TermPositionVector that stores only position information.

Public Constructors

public TermVectorOffsetInfo ()

public TermVectorOffsetInfo (int startOffset, int endOffset)

Public Methods

public boolean equals (Object o)

Two TermVectorOffsetInfos are equals if both the start and end offsets are the same

Parameters
o The comparison Object
Returns

public int getEndOffset ()

The accessor for the ending offset for the term

Returns
  • The offset

public int getStartOffset ()

The accessor for the starting offset of the term.

Returns
  • The offset

public int hashCode ()

public void setEndOffset (int endOffset)

public void setStartOffset (int startOffset)