Class SpecialOperations
Special automata operations.
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
SpecialOperations
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
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
Returns
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
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
Returns
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
Returns
IsFinite(Automaton)
Returns true
if the language of this automaton is finite.
Declaration
public static bool IsFinite(Automaton a)
Parameters
Returns
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
Returns