java.lang.Object
org.apache.lucene.util.automaton.NFARunAutomaton.DState
- All Implemented Interfaces:
Accountable
- Enclosing class:
NFARunAutomaton
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final intprivate final booleanprivate Transitionprivate final int[]private intprivate final Transitionprivate int[]Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassignTransition(int charClass, int dest) private voidbooleaninthashCode()private voidprivate intnextState(int charClass) longReturn the memory usage of this object in bytes.private NFARunAutomaton.DStatestep(int c) given a list of NFA states and a character c, compute the output list of NFA state which is wrapped as a DFA stateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
nfaStates
private final int[] nfaStates -
transitions
private int[] transitions -
hashCode
private final int hashCode -
isAccept
private final boolean isAccept -
stepTransition
-
minimalTransition
-
computedTransitions
private int computedTransitions -
outgoingTransitions
private int outgoingTransitions
-
-
Constructor Details
-
DState
private DState(int[] nfaStates)
-
-
Method Details
-
nextState
private int nextState(int charClass) -
assignTransition
private void assignTransition(int charClass, int dest) -
step
given a list of NFA states and a character c, compute the output list of NFA state which is wrapped as a DFA state -
determinize
private void determinize() -
initTransitions
private void initTransitions() -
hashCode
public int hashCode() -
equals
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-