Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SpecialOperations

    Special automata operations.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    SpecialOperations
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util.Automaton
    Assembly: Lucene.Net.dll
    Syntax
    public static class SpecialOperations

    Methods

    GetCommonPrefix(Automaton)

    Returns the longest string that is a prefix of all accepted strings and visits each state at most once.

    Declaration
    public static string GetCommonPrefix(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    string

    Common prefix.

    GetCommonPrefixBytesRef(Automaton)

    Special automata operations.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    public static BytesRef GetCommonPrefixBytesRef(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    BytesRef

    GetCommonSuffix(Automaton)

    Returns the longest string that is a suffix of all accepted strings and visits each state at most once.

    Declaration
    public static string GetCommonSuffix(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    string

    Common suffix.

    GetCommonSuffixBytesRef(Automaton)

    Special automata operations.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    public static BytesRef GetCommonSuffixBytesRef(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    BytesRef

    GetFiniteStrings(Automaton, int)

    Returns the set of accepted strings, assuming that at most limit strings are accepted. If more than limit strings are accepted, the first limit strings found are returned. If limit<0, then the limit is infinite.

    Declaration
    public static ISet<Int32sRef> GetFiniteStrings(Automaton a, int limit)
    Parameters
    Type Name Description
    Automaton a
    int limit
    Returns
    Type Description
    ISet<Int32sRef>

    IsFinite(Automaton)

    Returns true if the language of this automaton is finite.

    Declaration
    public static bool IsFinite(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    bool

    Reverse(Automaton)

    Reverses the language of the given (non-singleton) automaton while returning the set of new initial states.

    Declaration
    public static ISet<State> Reverse(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    ISet<State>
    Back to top Copyright © 2024 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.