Class SpecialOperations
Special automata operations.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
    SpecialOperations
  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: Lucene.Net.Util.Automaton
Assembly: Lucene.Net.dll
Syntax
public static class SpecialOperations
  Methods
| Improve this Doc View SourceGetCommonPrefix(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.  | 
      
GetCommonPrefixBytesRef(Automaton)
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 | 
|---|---|
| System.String | Common suffix.  | 
      
GetCommonSuffixBytesRef(Automaton)
Declaration
public static BytesRef GetCommonSuffixBytesRef(Automaton a)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Automaton | a | 
Returns
| Type | Description | 
|---|---|
| BytesRef | 
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 | 
|---|---|
| System.Collections.Generic.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 | 
|---|---|
| System.Boolean | 
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 | 
|---|---|
| System.Collections.Generic.ISet<State> |