C# 클래스 DBreeze.TextSearch.TextSearchHandler

New instance per transaction. Is created by necessity, while inserting or selecting anything concerning TextSearch subsystem.
파일 보기 프로젝트 열기: hhblaze/DBreeze

공개 프로퍼티들

프로퍼티 타입 설명
InsertWasPerformed bool

공개 메소드들

메소드 설명
AfterCommit ( ) : void

Started only in case if InsertWasPerformed in deffered or not deffered way

BeforeCommit ( ) : void

Started only in case if InsertWasPerformed in deffered or not deffered way

GetDocumentsSearchables ( Transaction tran, string tableName, HashSet documentIDs ) : HashSet>.Dictionary

InsertDocumentText ( Transaction tran, string tableName, byte documentId, string containsWords, string fullMatchWords, bool deferredIndexing, int containsMinimalLength, eInsertMode iMode ) : void

TextSearchHandler ( Transaction tran ) : System

비공개 메소드들

메소드 설명
DoIndexing ( Transaction itran, ITS>.Dictionary xitbls ) : void

itbls and transaction must be supplied, to make it working from outside

GetByteArrayFromSearchbles ( string searchables ) : byte[]

Converter from searchbales to byte[]

GetSearchablesFromByteArray ( byte searchables ) : string

Converter from byte[] searchables.

GetSearchablesFromByteArray_AsHashSet ( byte searchables ) : HashSet

GetWordsDefinitionFromText ( string containsWords, string fullMatchWords, int containsMinimalLength ) : WordDefinition>.SortedDictionary

Returns null in case of notfound anything or what ever

WordsDiff ( byte oldtext, byte newtext ) : HashSet>.Tuple

This function accepts old value of searchables for one document and new value, decides what must be Removed (par1) and what should be Added (par2)

메소드 상세

AfterCommit() 공개 메소드

Started only in case if InsertWasPerformed in deffered or not deffered way
public AfterCommit ( ) : void
리턴 void

BeforeCommit() 공개 메소드

Started only in case if InsertWasPerformed in deffered or not deffered way
public BeforeCommit ( ) : void
리턴 void

GetDocumentsSearchables() 공개 메소드

public GetDocumentsSearchables ( Transaction tran, string tableName, HashSet documentIDs ) : HashSet>.Dictionary
tran Transaction
tableName string
documentIDs HashSet
리턴 HashSet>.Dictionary

InsertDocumentText() 공개 메소드

public InsertDocumentText ( Transaction tran, string tableName, byte documentId, string containsWords, string fullMatchWords, bool deferredIndexing, int containsMinimalLength, eInsertMode iMode ) : void
tran Transaction
tableName string
documentId byte
containsWords string
fullMatchWords string
deferredIndexing bool
containsMinimalLength int
iMode eInsertMode
리턴 void

TextSearchHandler() 공개 메소드

public TextSearchHandler ( Transaction tran ) : System
tran Transaction
리턴 System

프로퍼티 상세

InsertWasPerformed 공개적으로 프로퍼티

public bool InsertWasPerformed
리턴 bool