C# Class Egothor.Stemmer.Optimizer

The Optimizer class is a Trie that will be reduced (have empty rows removed).

The reduction will be made by joining two rows where the first is a subset of the second.

Inheritance: Reduce
ファイルを表示 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Merge ( Cell m, Cell e ) : Cell

Merge the given Cells and return the resulting Cell.

Merge ( Row master, Row existing ) : Row

Merge the given rows and return the resulting Row.

Optimize ( Egothor.Stemmer.Trie orig ) : Egothor.Stemmer.Trie

Optimize (remove empty rows) from the given Trie and return the resulting Trie.

Optimizer ( ) : Lucene.Net.Support

Constructor for the Optimizer object.

Method Details

Merge() public method

Merge the given Cells and return the resulting Cell.
public Merge ( Cell m, Cell e ) : Cell
m Cell the master
e Cell the existing
return Cell

Merge() public method

Merge the given rows and return the resulting Row.
public Merge ( Row master, Row existing ) : Row
master Row the master
existing Row the existing
return Row

Optimize() public method

Optimize (remove empty rows) from the given Trie and return the resulting Trie.
public Optimize ( Egothor.Stemmer.Trie orig ) : Egothor.Stemmer.Trie
orig Egothor.Stemmer.Trie the to consolidate
return Egothor.Stemmer.Trie

Optimizer() public method

Constructor for the Optimizer object.
public Optimizer ( ) : Lucene.Net.Support
return Lucene.Net.Support