Class MutableState
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.nativefst.mutablefst.MutableState
-
public class MutableState extends Object
The fst's mutable state implementation. Holds its outgoingMutableArcobjects in an ArrayList allowing additions/deletions
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean_isStartStateprotected boolean_isTerminalprotected char_label
-
Constructor Summary
Constructors Constructor Description MutableState()Default ConstructorMutableState(boolean isStartState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)MutableArcgetArc(int index)Get an arc based on it's index the arcs ArrayListintgetArcCount()Get the number of outgoing arcsList<MutableArc>getArcs()Iterable<MutableState>getIncomingStates()chargetLabel()inthashCode()booleanisStartState()booleanisTerminal()voidsetIsTerminal(boolean isTerminal)voidsetLabel(char label)StringtoString()
-
-
-
Method Detail
-
isTerminal
public boolean isTerminal()
-
isStartState
public boolean isStartState()
-
getLabel
public char getLabel()
-
setLabel
public void setLabel(char label)
-
setIsTerminal
public void setIsTerminal(boolean isTerminal)
-
getArcCount
public int getArcCount()
Get the number of outgoing arcs
-
getArc
public MutableArc getArc(int index)
Get an arc based on it's index the arcs ArrayList- Parameters:
index- the arc's index- Returns:
- the arc
-
getArcs
public List<MutableArc> getArcs()
-
getIncomingStates
public Iterable<MutableState> getIncomingStates()
-
-