Show / Hide Table of Contents

    Class SpecialOperations

    Special automata operations.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    SpecialOperations
    Namespace: Lucene.Net.Util.Automaton
    Assembly: Lucene.Net.dll
    Syntax
    public static class SpecialOperations : object

    Methods

    | Improve this Doc View Source

    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
    System.String

    Common prefix.

    | Improve this Doc View Source

    GetCommonPrefixBytesRef(Automaton)

    Declaration
    public static BytesRef GetCommonPrefixBytesRef(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    BytesRef
    | Improve this Doc View Source

    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
    System.String

    Common suffix.

    | Improve this Doc View Source

    GetCommonSuffixBytesRef(Automaton)

    Declaration
    public static BytesRef GetCommonSuffixBytesRef(Automaton a)
    Parameters
    Type Name Description
    Automaton a
    Returns
    Type Description
    BytesRef
    | Improve this Doc View Source

    GetFiniteStrings(Automaton, Int32)

    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
    System.Int32 limit
    Returns
    Type Description
    ISet<Int32sRef>
    | Improve this Doc View Source

    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
    System.Boolean
    | Improve this Doc View Source

    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>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)