C# 클래스 ScrewTurn.Wiki.Plugins.SqlCommon.IndexConnector

Defines a connector between an index and a pages storage provider.
상속: IIndexConnector
파일 보기 프로젝트 열기: mono/ScrewTurnWiki

공개 메소드들

메소드 설명
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