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
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Lucene.Net.dll
Syntax
public class CompiledAutomaton
Constructors
|
Improve this Doc
View Source
CompiledAutomaton(Automaton)
Declaration
public CompiledAutomaton(Automaton automaton)
Parameters
|
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
|
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
|
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
|
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
|
Improve this Doc
View Source
Type
Declaration
public CompiledAutomaton.AUTOMATON_TYPE Type { get; }
Property Value
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 |
|
Overrides
System.Object.Equals(System.Object)
|
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
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetTermsEnum(Terms)
Declaration
public virtual TermsEnum GetTermsEnum(Terms terms)
Parameters
Type |
Name |
Description |
Terms |
terms |
|
Returns
|
Improve this Doc
View Source
ToDot()
Declaration
public virtual string ToDot()
Returns
Type |
Description |
System.String |
|