Package org.apache.lucene.util.automaton
Class Lev2ParametricDescription
- java.lang.Object
-
- org.apache.lucene.util.automaton.LevenshteinAutomata.ParametricDescription
-
- org.apache.lucene.util.automaton.Lev2ParametricDescription
-
class Lev2ParametricDescription extends LevenshteinAutomata.ParametricDescription
Parametric description for generating a Levenshtein automaton of degree 2
-
-
Field Summary
Fields Modifier and Type Field Description private static long[]
offsetIncrs0
private static long[]
offsetIncrs1
private static long[]
offsetIncrs2
private static long[]
offsetIncrs3
private static long[]
offsetIncrs4
private static long[]
offsetIncrs5
private static long[]
toStates0
private static long[]
toStates1
private static long[]
toStates2
private static long[]
toStates3
private static long[]
toStates4
private static long[]
toStates5
-
Fields inherited from class org.apache.lucene.util.automaton.LevenshteinAutomata.ParametricDescription
n, w
-
-
Constructor Summary
Constructors Constructor Description Lev2ParametricDescription(int w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
transition(int absState, int position, int vector)
Returns the state number for a transition from the givenstate
, assumingposition
and characteristic vectorvector
-
Methods inherited from class org.apache.lucene.util.automaton.LevenshteinAutomata.ParametricDescription
getPosition, isAccept, size, unpack
-
-
-
-
Field Detail
-
toStates0
private static final long[] toStates0
-
offsetIncrs0
private static final long[] offsetIncrs0
-
toStates1
private static final long[] toStates1
-
offsetIncrs1
private static final long[] offsetIncrs1
-
toStates2
private static final long[] toStates2
-
offsetIncrs2
private static final long[] offsetIncrs2
-
toStates3
private static final long[] toStates3
-
offsetIncrs3
private static final long[] offsetIncrs3
-
toStates4
private static final long[] toStates4
-
offsetIncrs4
private static final long[] offsetIncrs4
-
toStates5
private static final long[] toStates5
-
offsetIncrs5
private static final long[] offsetIncrs5
-
-
Method Detail
-
transition
int transition(int absState, int position, int vector)
Description copied from class:LevenshteinAutomata.ParametricDescription
Returns the state number for a transition from the givenstate
, assumingposition
and characteristic vectorvector
- Specified by:
transition
in classLevenshteinAutomata.ParametricDescription
-
-