C# Class DBreeze.TextSearch.TextSearchHandler

New instance per transaction. Is created by necessity, while inserting or selecting anything concerning TextSearch subsystem.
Afficher le fichier Open project: hhblaze/DBreeze

Méthodes publiques

Свойство Type Description
InsertWasPerformed bool

Méthodes publiques

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

Private Methods

Méthode Description
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)

Method Details

AfterCommit() public méthode

Started only in case if InsertWasPerformed in deffered or not deffered way
public AfterCommit ( ) : void
Résultat void

BeforeCommit() public méthode

Started only in case if InsertWasPerformed in deffered or not deffered way
public BeforeCommit ( ) : void
Résultat void

GetDocumentsSearchables() public méthode

public GetDocumentsSearchables ( Transaction tran, string tableName, HashSet documentIDs ) : HashSet>.Dictionary
tran Transaction
tableName string
documentIDs HashSet
Résultat HashSet>.Dictionary

InsertDocumentText() public méthode

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
Résultat void

TextSearchHandler() public méthode

public TextSearchHandler ( Transaction tran ) : System
tran Transaction
Résultat System

Property Details

InsertWasPerformed public_oe property

public bool InsertWasPerformed
Résultat bool