C# Класс ScrewTurn.Wiki.Plugins.SqlCommon.IndexConnector

Defines a connector between an index and a pages storage provider.
Наследование: IIndexConnector
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ClearIndex() публичный Метод

Invokes the ClearIndex delegate.
public ClearIndex ( object state ) : void
state object A state object passed from the index.
Результат void

DeleteDataForDocument() публичный Метод

Invokes the DeleteDataForDocument delegate.
public DeleteDataForDocument ( IDocument document, object state ) : void
document IDocument The document.
state object A state object passed from the index.
Результат void

GetCount() публичный Метод

Invokes the GetCount delegate.
public GetCount ( IndexElementType element ) : int
element IndexElementType The element type.
Результат int

GetSize() публичный Метод

Defines a delegate for a method that gets the size of the approximate index in bytes.
public GetSize ( ) : long
Результат long

GetWordFetcher() публичный Метод

Invokes the GetWordFetcher delegate.
public GetWordFetcher ( ) : IWordFetcher
Результат IWordFetcher

IndexConnector() публичный Метод

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.
Результат System

SaveDataForDocument() публичный Метод

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.
Результат int