C# Class ScrewTurn.Wiki.Plugins.SqlCommon.IndexConnector

Defines a connector between an index and a pages storage provider.
Inheritance: IIndexConnector
Mostra file Open project: mono/ScrewTurnWiki

Public Methods

Method Description
ClearIndex ( object state ) : void

Invokes the ClearIndex delegate.

DeleteDataForDocument ( IDocument document, object state ) : void

Invokes the DeleteDataForDocument delegate.

GetCount ( IndexElementType element ) : int

Invokes the GetCount delegate.

GetSize ( ) : long

Defines a delegate for a method that gets the size of the approximate index in bytes.

GetWordFetcher ( ) : IWordFetcher

Invokes the GetWordFetcher delegate.

IndexConnector ( GetWordFetcher getWordFetcher, GetSize getSize, GetCount getCount, ClearIndex clearIndex, DeleteDataForDocument deleteData, SaveDataForDocument saveData, TryFindWord tryFindWord ) : System

Initializes a new instance of the T:IndexConnector class.

SaveDataForDocument ( IDocument document, WordInfo content, WordInfo title, WordInfo keywords, object state ) : int

Invokes the SaveDataForDocument delegate.

Method Details

ClearIndex() public method

Invokes the ClearIndex delegate.
public ClearIndex ( object state ) : void
state object A state object passed from the index.
return void

DeleteDataForDocument() public method

Invokes the DeleteDataForDocument delegate.
public DeleteDataForDocument ( IDocument document, object state ) : void
document IDocument The document.
state object A state object passed from the index.
return void

GetCount() public method

Invokes the GetCount delegate.
public GetCount ( IndexElementType element ) : int
element IndexElementType The element type.
return int

GetSize() public method

Defines a delegate for a method that gets the size of the approximate index in bytes.
public GetSize ( ) : long
return long

GetWordFetcher() public method

Invokes the GetWordFetcher delegate.
public GetWordFetcher ( ) : IWordFetcher
return IWordFetcher

IndexConnector() public method

Initializes a new instance of the T:IndexConnector class.
public IndexConnector ( GetWordFetcher getWordFetcher, GetSize getSize, GetCount getCount, ClearIndex clearIndex, DeleteDataForDocument deleteData, SaveDataForDocument saveData, TryFindWord tryFindWord ) : System
getWordFetcher GetWordFetcher The GetWordFetcher delegate.
getSize GetSize The GetSize delegate.
getCount GetCount The GetCount delegate.
clearIndex ClearIndex The ClearIndex delegate.
deleteData DeleteDataForDocument The DeleteDataForDocument delegate.
saveData SaveDataForDocument The SaveData delegate.
tryFindWord TryFindWord The TryFindWord delegate.
return System

SaveDataForDocument() public method

Invokes the SaveDataForDocument delegate.
public SaveDataForDocument ( IDocument document, WordInfo content, WordInfo title, WordInfo keywords, object state ) : int
document IDocument The document.
content WordInfo The content words.
title WordInfo The title words.
keywords WordInfo The keywords.
state object A state object passed from the index.
return int