Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class 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
    System.Object
    Reduce
    Optimizer
    Optimizer2
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Egothor.Stemmer
    Assembly: Lucene.Net.Analysis.Stempel.dll
    Syntax
    public class Optimizer : Reduce

    Constructors

    | Improve this Doc View Source

    Optimizer()

    Constructor for the Optimizer object.

    Declaration
    public Optimizer()

    Methods

    | Improve this Doc View Source

    Merge(Cell, Cell)

    Merge the given Cells and return the resulting Cell.

    Declaration
    public virtual Cell Merge(Cell m, Cell e)
    Parameters
    Type Name Description
    Cell m

    the master Cell

    Cell e

    the existing Cell

    Returns
    Type Description
    Cell

    the resulting Cell, or null if the operation cannot be realized

    | Improve this Doc View Source

    Merge(Row, Row)

    Merge the given rows and return the resulting Row.

    Declaration
    public Row Merge(Row master, Row existing)
    Parameters
    Type Name Description
    Row master

    the master Row

    Row existing

    the existing Row

    Returns
    Type Description
    Row

    the resulting Row, or null if the operation cannot be realized

    | Improve this Doc View Source

    Optimize(Trie)

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

    Declaration
    public override Trie Optimize(Trie orig)
    Parameters
    Type Name Description
    Trie orig

    the Trie to consolidate

    Returns
    Type Description
    Trie

    the newly consolidated Trie

    Overrides
    Reduce.Optimize(Trie)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.