C# Class Egothor.Stemmer.MultiTrie

The MultiTrie is a Trie of Tries. It stores words and their associated patch commands. The MultiTrie handles patch commands individually (each command by itself).
Inheritance: Egothor.Stemmer.Trie
Mostrar archivo Open project: apache/lucenenet Class Usage Examples

Protected Properties

Property Type Description
tries List

Public Methods

Method Description
Add ( string key, string cmd ) : void

Add an element to this structure consisting of the given key and patch command.

This method will return without executing if the cmd parameter's length is 0.

GetFully ( string key ) : string

Return the element that is stored in a cell associated with the given key.

GetLastOnPath ( string key ) : string

Return the element that is stored as last on a path belonging to the given key.

MultiTrie ( IDataInput @is ) : Lucene.Net.Support

Constructor for the MultiTrie object.

MultiTrie ( bool forward ) : Lucene.Net.Support

Constructor for the MultiTrie object

PrintInfo ( TextWriter @out, string prefix ) : void

Print the given prefix and the position(s) in the Trie where it appears.

Reduce ( Reduce by ) : Egothor.Stemmer.Trie

Remove empty rows from the given Trie and return the newly reduced Trie.

Store ( IDataOutput os ) : void

Write this data structure to the given output stream.

Method Details

Add() public method

Add an element to this structure consisting of the given key and patch command.

This method will return without executing if the cmd parameter's length is 0.

public Add ( string key, string cmd ) : void
key string the key
cmd string the patch command
return void

GetFully() public method

Return the element that is stored in a cell associated with the given key.
public GetFully ( string key ) : string
key string the key to the cell holding the desired element
return string

GetLastOnPath() public method

Return the element that is stored as last on a path belonging to the given key.
public GetLastOnPath ( string key ) : string
key string the key associated with the desired element
return string

MultiTrie() public method

Constructor for the MultiTrie object.
if an I/O error occurs
public MultiTrie ( IDataInput @is ) : Lucene.Net.Support
@is IDataInput
return Lucene.Net.Support

MultiTrie() public method

Constructor for the MultiTrie object
public MultiTrie ( bool forward ) : Lucene.Net.Support
forward bool set to true if the elements should be read left to right
return Lucene.Net.Support

PrintInfo() public method

Print the given prefix and the position(s) in the Trie where it appears.
public PrintInfo ( TextWriter @out, string prefix ) : void
@out System.IO.TextWriter
prefix string the desired prefix
return void

Reduce() public method

Remove empty rows from the given Trie and return the newly reduced Trie.
public Reduce ( Reduce by ) : Egothor.Stemmer.Trie
by Reduce the to reduce
return Egothor.Stemmer.Trie

Store() public method

Write this data structure to the given output stream.
if an I/O error occurs
public Store ( IDataOutput os ) : void
os IDataOutput the output stream
return void

Property Details

tries protected_oe property

protected List tries
return List