C# Class ScrewTurn.Wiki.SearchEngine.DumpedWordMapping

Contains a word mapping data, structured for easy dumping on disk or database.
The class is not thread-safe.
显示文件 Open project: mono/ScrewTurnWiki Class Usage Examples

Protected Properties

Property Type Description
documentId uint
firstCharIndex ushort
location byte
wordId uint
wordIndex ushort

Public Methods

Method Description
DumpedWordMapping ( uint wordId, uint documentId, BasicWordInfo info ) : System

Initializes a new instance of the DumpedWordMapping class.

DumpedWordMapping ( uint wordId, uint documentId, ushort firstCharIndex, ushort wordIndex, byte location ) : System

Initializes a new instance of the DumpedWordMapping class.

Method Details

DumpedWordMapping() public method

Initializes a new instance of the DumpedWordMapping class.
If is null.
public DumpedWordMapping ( uint wordId, uint documentId, BasicWordInfo info ) : System
wordId uint The word unique ID.
documentId uint The document unique ID.
info BasicWordInfo The .
return System

DumpedWordMapping() public method

Initializes a new instance of the DumpedWordMapping class.
public DumpedWordMapping ( uint wordId, uint documentId, ushort firstCharIndex, ushort wordIndex, byte location ) : System
wordId uint The word unique ID.
documentId uint The document unique ID.
firstCharIndex ushort The index of the first character the word.
wordIndex ushort The index of the word in the original index.
location byte The location identifier.
return System

Property Details

documentId protected_oe property

The document unique ID.
protected uint documentId
return uint

firstCharIndex protected_oe property

The index of the character of the word.
protected ushort firstCharIndex
return ushort

location protected_oe property

The location identifier.
protected byte location
return byte

wordId protected_oe property

The word unique ID.
protected uint wordId
return uint

wordIndex protected_oe property

The index of the word in the original document.
protected ushort wordIndex
return ushort