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

Defines a connector between an index and a pages storage provider.
Inheritance: IIndexConnector
Afficher le fichier Open project: mono/ScrewTurnWiki

Méthodes publiques

Méthode 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 méthode

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

DeleteDataForDocument() public méthode

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

GetCount() public méthode

Invokes the GetCount delegate.
public GetCount ( IndexElementType element ) : int
element IndexElementType The element type.
Résultat int

GetSize() public méthode

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

GetWordFetcher() public méthode

Invokes the GetWordFetcher delegate.
public GetWordFetcher ( ) : IWordFetcher
Résultat IWordFetcher

IndexConnector() public méthode

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.
Résultat System

SaveDataForDocument() public méthode

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.
Résultat int