C# 클래스 Lucene.Net.Util.Automaton.SpecialOperations

Special automata operations. @lucene.experimental
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
GetCommonPrefix ( Automaton a ) : string

Returns the longest string that is a prefix of all accepted strings and visits each state at most once.

GetCommonPrefixBytesRef ( Automaton a ) : BytesRef
GetCommonSuffix ( Automaton a ) : string

Returns the longest string that is a suffix of all accepted strings and visits each state at most once.

GetCommonSuffixBytesRef ( Automaton a ) : BytesRef
GetFiniteStrings ( Automaton a, int limit ) : ISet

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.

IsFinite ( Automaton a ) : bool

Returns true if the language of this automaton is finite.

Reverse ( Automaton a ) : ISet

Reverses the language of the given (non-singleton) automaton while returning the set of new initial states.

비공개 메소드들

메소드 설명
FindIndex ( int c, int points ) : int

Finds the largest entry whose value is less than or equal to c, or 0 if there is no such entry.

GetFiniteStrings ( State s, HashSet pathstates, HashSet strings, IntsRef path, int limit ) : bool

Returns the strings that can be produced from the given state, or false if more than limit strings are found. limit<0 means "infinite".

IsFinite ( State s, BitArray path, BitArray visited ) : bool

Checks whether there is a loop containing s. (this is sufficient since there are never transitions to dead states.)

ReverseBytes ( BytesRef @ref ) : void
SpecialOperations ( ) : System

메소드 상세

GetCommonPrefix() 공개 정적인 메소드

Returns the longest string that is a prefix of all accepted strings and visits each state at most once.
public static GetCommonPrefix ( Automaton a ) : string
a Automaton
리턴 string

GetCommonPrefixBytesRef() 공개 정적인 메소드

public static GetCommonPrefixBytesRef ( Automaton a ) : BytesRef
a Automaton
리턴 BytesRef

GetCommonSuffix() 공개 정적인 메소드

Returns the longest string that is a suffix of all accepted strings and visits each state at most once.
public static GetCommonSuffix ( Automaton a ) : string
a Automaton
리턴 string

GetCommonSuffixBytesRef() 공개 정적인 메소드

public static GetCommonSuffixBytesRef ( Automaton a ) : BytesRef
a Automaton
리턴 BytesRef

GetFiniteStrings() 공개 정적인 메소드

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.
public static GetFiniteStrings ( Automaton a, int limit ) : ISet
a Automaton
limit int
리턴 ISet

IsFinite() 공개 정적인 메소드

Returns true if the language of this automaton is finite.
public static IsFinite ( Automaton a ) : bool
a Automaton
리턴 bool

Reverse() 공개 정적인 메소드

Reverses the language of the given (non-singleton) automaton while returning the set of new initial states.
public static Reverse ( Automaton a ) : ISet
a Automaton
리턴 ISet