Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Properties | List of all members
Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute Interface Reference

The start and end character offset of a Token. More...

Inherits Lucene.Net.Util.IAttribute.

Inherited by Lucene.Net.Analysis.Token, and Lucene.Net.Analysis.Tokenattributes.OffsetAttribute.

Public Member Functions

void SetOffset (int startOffset, int endOffset)
 Set the starting and ending offset. See StartOffset() and EndOffset()
 

Properties

int StartOffset [get]
 Returns this Token's starting offset, the position of the first character corresponding to this token in the source text. Note that the difference between endOffset() and startOffset() may not be equal to termText.length(), as the term text may have been altered by a stemmer or some other filter.
 
int EndOffset [get]
 Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is (endOffset - startOffset).
 

Detailed Description

The start and end character offset of a Token.

Definition at line 25 of file IOffsetAttribute.cs.

Member Function Documentation

void Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute.SetOffset ( int  startOffset,
int  endOffset 
)

Set the starting and ending offset. See StartOffset() and EndOffset()

Implemented in Lucene.Net.Analysis.Token, and Lucene.Net.Analysis.Tokenattributes.OffsetAttribute.

Property Documentation

int Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute.EndOffset
get

Returns this Token's ending offset, one greater than the position of the last character corresponding to this token in the source text. The length of the token in the source text is (endOffset - startOffset).

Definition at line 46 of file IOffsetAttribute.cs.

int Lucene.Net.Analysis.Tokenattributes.IOffsetAttribute.StartOffset
get

Returns this Token's starting offset, the position of the first character corresponding to this token in the source text. Note that the difference between endOffset() and startOffset() may not be equal to termText.length(), as the term text may have been altered by a stemmer or some other filter.

Definition at line 33 of file IOffsetAttribute.cs.


The documentation for this interface was generated from the following file: