java.lang.Object
org.apache.lucene.util.automaton.Transition
- All Implemented Interfaces:
Accountable
Holds one transition from an
Automaton. This is typically used temporarily when iterating
through transitions by invoking Automaton.initTransition(int, org.apache.lucene.util.automaton.Transition) and Automaton.getNextTransition(org.apache.lucene.util.automaton.Transition).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic estimation of bytes usedintDestination state.intMaximum accepted label (inclusive).intMinimum accepted label (inclusive).intSource state.(package private) intRemembers where we are in the iteration; init to -1 to provoke exception if nextTransition is called without first initTransition.Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturn the memory usage of this object in bytes.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
BYTES_USED
public static final long BYTES_USEDstatic estimation of bytes used -
source
public int sourceSource state. -
dest
public int destDestination state. -
min
public int minMinimum accepted label (inclusive). -
max
public int maxMaximum accepted label (inclusive). -
transitionUpto
int transitionUptoRemembers where we are in the iteration; init to -1 to provoke exception if nextTransition is called without first initTransition.
-
-
Constructor Details
-
Transition
public Transition()Sole constructor.
-
-
Method Details
-
toString
-
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
-