Show / Hide Table of Contents

    Class CompiledAutomaton

    Immutable class holding compiled details for a given Automaton. The Automaton is deterministic, must not have dead states but is not necessarily minimal.

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

    Constructors

    | Improve this Doc View Source

    CompiledAutomaton(Automaton)

    Declaration
    public CompiledAutomaton(Automaton automaton)
    Parameters
    Type Name Description
    Automaton automaton
    | Improve this Doc View Source

    CompiledAutomaton(Automaton, Nullable<Boolean>, Boolean)

    Declaration
    public CompiledAutomaton(Automaton automaton, bool? finite, bool simplify)
    Parameters
    Type Name Description
    Automaton automaton
    System.Nullable<System.Boolean> finite
    System.Boolean simplify

    Properties

    | Improve this Doc View Source

    CommonSuffixRef

    Shared common suffix accepted by the automaton. Only valid for NORMAL, and only when the automaton accepts an infinite language.

    Declaration
    public BytesRef CommonSuffixRef { get; }
    Property Value
    Type Description
    BytesRef
    | Improve this Doc View Source

    Finite

    Indicates if the automaton accepts a finite set of strings. Null if this was not computed. Only valid for NORMAL.

    Declaration
    public bool? Finite { get; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    RunAutomaton

    Matcher for quickly determining if a byte[] is accepted. only valid for NORMAL.

    Declaration
    public ByteRunAutomaton RunAutomaton { get; }
    Property Value
    Type Description
    ByteRunAutomaton
    | Improve this Doc View Source

    SortedTransitions

    Two dimensional array of transitions, indexed by state number for traversal. The state numbering is consistent with RunAutomaton.

    Only valid for NORMAL.

    Declaration
    public Transition[][] SortedTransitions { get; }
    Property Value
    Type Description
    Transition[][]
    | Improve this Doc View Source

    Term

    For PREFIX, this is the prefix term; for SINGLE this is the singleton term.

    Declaration
    public BytesRef Term { get; }
    Property Value
    Type Description
    BytesRef
    | Improve this Doc View Source

    Type

    Declaration
    public CompiledAutomaton.AUTOMATON_TYPE Type { get; }
    Property Value
    Type Description
    CompiledAutomaton.AUTOMATON_TYPE

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Floor(BytesRef, BytesRef)

    Finds largest term accepted by this Automaton, that's <= the provided input term. The result is placed in output; it's fine for output and input to point to the same BytesRef. The returned result is either the provided output, or null if there is no floor term (ie, the provided input term is before the first term accepted by this Automaton).

    Declaration
    public virtual BytesRef Floor(BytesRef input, BytesRef output)
    Parameters
    Type Name Description
    BytesRef input
    BytesRef output
    Returns
    Type Description
    BytesRef
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetTermsEnum(Terms)

    Declaration
    public virtual TermsEnum GetTermsEnum(Terms terms)
    Parameters
    Type Name Description
    Terms terms
    Returns
    Type Description
    TermsEnum
    | Improve this Doc View Source

    ToDot()

    Declaration
    public virtual string ToDot()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)