Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Row

    The Row class represents a row in a matrix representation of a Trie.

    Inheritance
    System.Object
    Row
    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 Row

    Constructors

    | Improve this Doc View Source

    Row()

    The default constructor for the Row object.

    Declaration
    public Row()
    | Improve this Doc View Source

    Row(Row)

    Construct a Row using the cells of the given Row.

    Declaration
    public Row(Row old)
    Parameters
    Type Name Description
    Row old

    the Row to copy

    | Improve this Doc View Source

    Row(IDataInput)

    Construct a Row object from input carried in via the given input stream.

    Declaration
    public Row(IDataInput is)
    Parameters
    Type Name Description
    J2N.IO.IDataInput is

    the input stream

    Exceptions
    Type Condition
    System.IO.IOException

    if an I/O error occurs

    Methods

    | Improve this Doc View Source

    GetCells()

    Return the number of cells in use.

    Declaration
    public int GetCells()
    Returns
    Type Description
    System.Int32

    the number of cells in use

    | Improve this Doc View Source

    GetCellsPnt()

    Return the number of references (how many transitions) to other rows.

    Declaration
    public int GetCellsPnt()
    Returns
    Type Description
    System.Int32

    the number of references

    | Improve this Doc View Source

    GetCellsVal()

    Return the number of patch commands saved in this Row.

    Declaration
    public int GetCellsVal()
    Returns
    Type Description
    System.Int32

    the number of patch commands

    | Improve this Doc View Source

    GetCmd(Char)

    Return the command in the Cell associated with the given System.Char.

    Declaration
    public int GetCmd(char way)
    Parameters
    Type Name Description
    System.Char way

    the System.Char associated with the Cell holding the desired command

    Returns
    Type Description
    System.Int32

    the command

    | Improve this Doc View Source

    GetCnt(Char)

    Return the number of patch commands were in the Cell associated with the given System.Char before the Trie containing this Row was reduced.

    Declaration
    public int GetCnt(char way)
    Parameters
    Type Name Description
    System.Char way

    the System.Char associated with the desired Cell

    Returns
    Type Description
    System.Int32

    the number of patch commands before reduction

    | Improve this Doc View Source

    GetRef(Char)

    Return the reference to the next Row in the Cell associated with the given System.Char.

    Declaration
    public int GetRef(char way)
    Parameters
    Type Name Description
    System.Char way

    the System.Char associated with the desired Cell

    Returns
    Type Description
    System.Int32

    the reference, or -1 if the Cell is null

    | Improve this Doc View Source

    Print(TextWriter)

    Write the contents of this Row to the System.IO.TextWriter.

    Declaration
    public virtual void Print(TextWriter out)
    Parameters
    Type Name Description
    System.IO.TextWriter out
    | Improve this Doc View Source

    SetCmd(Char, Int32)

    Set the command in the Cell of the given System.Char to the given System.Int32.

    Declaration
    public void SetCmd(char way, int cmd)
    Parameters
    Type Name Description
    System.Char way

    the System.Char defining the Cell

    System.Int32 cmd

    the new command

    | Improve this Doc View Source

    SetRef(Char, Int32)

    Set the reference to the next row in the Cell of the given System.Char to the given System.Int32.

    Declaration
    public void SetRef(char way, int ref)
    Parameters
    Type Name Description
    System.Char way

    the System.Char defining the Cell

    System.Int32 ref

    The new ref value

    | Improve this Doc View Source

    Store(IDataOutput)

    Write the contents of this Row to the given output stream.

    Declaration
    public virtual void Store(IDataOutput os)
    Parameters
    Type Name Description
    J2N.IO.IDataOutput os

    the output stream

    Exceptions
    Type Condition
    System.IO.IOException

    if an I/O error occurs

    | Improve this Doc View Source

    UniformCmd(Boolean)

    Return the number of identical Cells (containing patch commands) in this Row.

    Declaration
    public int UniformCmd(bool eqSkip)
    Parameters
    Type Name Description
    System.Boolean eqSkip

    when set to false the removed patch commands are considered

    Returns
    Type Description
    System.Int32

    the number of identical Cells, or -1 if there are (at least) two different Cells

    • 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.