Show / Hide Table of Contents

    Class 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
    System.Object
    Trie
    MultiTrie
    MultiTrie2
    Inherited Members
    Trie.GetAll(String)
    Trie.GetCells()
    Trie.GetCellsPnt()
    Trie.GetCellsVal()
    Namespace: Egothor.Stemmer
    Assembly: Lucene.Net.Analysis.Stempel.dll
    Syntax
    public class MultiTrie : Trie

    Constructors

    | Improve this Doc View Source

    MultiTrie(IDataInput)

    Constructor for the MultiTrie object.

    Declaration
    public MultiTrie(IDataInput is)
    Parameters
    Type Name Description
    IDataInput is

    the input stream

    | Improve this Doc View Source

    MultiTrie(Boolean)

    Constructor for the MultiTrie object

    Declaration
    public MultiTrie(bool forward)
    Parameters
    Type Name Description
    System.Boolean forward

    set to true if the elements should be read left to right

    Fields

    | Improve this Doc View Source

    m_tries

    Declaration
    protected List<Trie> m_tries
    Field Value
    Type Description
    List<Trie>

    Methods

    | Improve this Doc View Source

    Add(String, String)

    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.

    Declaration
    public override void Add(string key, string cmd)
    Parameters
    Type Name Description
    System.String key

    the key

    System.String cmd

    the patch command

    Overrides
    Trie.Add(String, String)
    | Improve this Doc View Source

    GetFully(String)

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

    Declaration
    public override string GetFully(string key)
    Parameters
    Type Name Description
    System.String key

    the key to the cell holding the desired element

    Returns
    Type Description
    System.String

    the element

    Overrides
    Trie.GetFully(String)
    | Improve this Doc View Source

    GetLastOnPath(String)

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

    Declaration
    public override string GetLastOnPath(string key)
    Parameters
    Type Name Description
    System.String key

    the key associated with the desired element

    Returns
    Type Description
    System.String

    the element that is stored as last on a path

    Overrides
    Trie.GetLastOnPath(String)
    | Improve this Doc View Source

    PrintInfo(TextWriter, String)

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

    Declaration
    public override void PrintInfo(TextWriter out, string prefix)
    Parameters
    Type Name Description
    TextWriter out
    System.String prefix

    the desired prefix

    Overrides
    Trie.PrintInfo(TextWriter, String)
    | Improve this Doc View Source

    Reduce(Reduce)

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

    Declaration
    public override Trie Reduce(Reduce by)
    Parameters
    Type Name Description
    Reduce by

    the Trie to reduce

    Returns
    Type Description
    Trie

    the newly reduced Trie

    Overrides
    Trie.Reduce(Reduce)
    | Improve this Doc View Source

    Store(IDataOutput)

    Write this data structure to the given output stream.

    Declaration
    public override void Store(IDataOutput os)
    Parameters
    Type Name Description
    IDataOutput os

    the output stream

    Overrides
    Trie.Store(IDataOutput)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)