C# 클래스 BzReader.Indexer

파일 보기 프로젝트 열기: synhershko/BzReader 1 사용 예제들

공개 메소드들

메소드 설명
AbortIndex ( ) : void
Close ( ) : void

Closes the searcher object

CreateIndex ( ) : void
Indexer ( string path ) : System

Initializes a new instance of the Indexer class.

LoadAndDecodeBlock ( long begin, long end ) : string

Loads a block from the file, decompresses it and decodes to string

Search ( string queryString, IEnumerable indexers, int maxResults ) : HitCollection

Searches for the specified term in the index.

보호된 메소드들

메소드 설명
OnProgressChanged ( ProgressChangedEventArgs e ) : void

비공개 메소드들

메소드 설명
BzipBlockLocatorProgressMonitor ( ) : void

watch the bzip2 block locator and report progress

CreateIndexAsync ( ) : void

Creates the index for the bz2 file on a separate thread.

GuessAnalyzer ( string filePath, bool &isRTL ) : Analyzer
IndexString ( string currentText, long beginning, long end, int charCarryOver, bool lastBlock ) : int

Indexes the provided string

LoadBlock ( long beginning, long end, byte &buf ) : long

Loads the bzip2 block from the file

LocateBlocks ( ) : void

Locates the bzip2 blocks in the file

ReportProgress ( int percentage, IndexingProgress status, string message ) : void
Search ( object state ) : void

The searches are always executed on the thread pools

TokenizeAndAdd ( object state ) : void

Tokenizes and adds the specified PageInfo object to Lucene index

메소드 상세

AbortIndex() 공개 메소드

public AbortIndex ( ) : void
리턴 void

Close() 공개 메소드

Closes the searcher object
public Close ( ) : void
리턴 void

CreateIndex() 공개 메소드

public CreateIndex ( ) : void
리턴 void

Indexer() 공개 메소드

Initializes a new instance of the Indexer class.
public Indexer ( string path ) : System
path string The path to the .xml.bz2 dump of wikipedia
리턴 System

LoadAndDecodeBlock() 공개 메소드

Loads a block from the file, decompresses it and decodes to string
public LoadAndDecodeBlock ( long begin, long end ) : string
begin long The list of block beginnings
end long The list of block ends
리턴 string

OnProgressChanged() 보호된 메소드

protected OnProgressChanged ( ProgressChangedEventArgs e ) : void
e System.ComponentModel.ProgressChangedEventArgs
리턴 void

Search() 공개 정적인 메소드

Searches for the specified term in the index.
public static Search ( string queryString, IEnumerable indexers, int maxResults ) : HitCollection
queryString string
indexers IEnumerable
maxResults int
리턴 HitCollection