Class MatchResult
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.nativefst.MatchResult
-
public final class MatchResult extends Object
A matching result returned fromFSTTraversal.- See Also:
FSTTraversal
-
-
Field Summary
Fields Modifier and Type Field Description int_indexInput sequence's index, interpretation depends on_kind.int_kindOne of the match types defined in this class.int_nodeAutomaton node, interpretation depends on the_kind.static intAUTOMATON_HAS_PREFIXThe automaton contains a prefix of the input sequence (but the full sequence does not exist).static intEXACT_MATCHThe automaton has exactly one match for the input sequence.static intNO_MATCHThe automaton has no match for the input sequence and no sequence in the automaton is a prefix of the input.static intSEQUENCE_IS_A_PREFIXThe sequence is a prefix of at least one sequence in the automaton.
-
Constructor Summary
Constructors Constructor Description MatchResult()
-
-
-
Field Detail
-
EXACT_MATCH
public static final int EXACT_MATCH
The automaton has exactly one match for the input sequence.- See Also:
- Constant Field Values
-
NO_MATCH
public static final int NO_MATCH
The automaton has no match for the input sequence and no sequence in the automaton is a prefix of the input. Note that to check for a general "input does not exist in the automaton" you have to check for bothNO_MATCHandAUTOMATON_HAS_PREFIX.- See Also:
- Constant Field Values
-
AUTOMATON_HAS_PREFIX
public static final int AUTOMATON_HAS_PREFIX
The automaton contains a prefix of the input sequence (but the full sequence does not exist). This translates to: one of the input sequences used to build the automaton is a prefix of the input sequence, but the input sequence contains a non-existent suffix._indexwill contain an index of the first character of the input sequence not present in the dictionary.- See Also:
- Constant Field Values
-
SEQUENCE_IS_A_PREFIX
public static final int SEQUENCE_IS_A_PREFIX
The sequence is a prefix of at least one sequence in the automaton._nodereturns the node from which all sequences with the given prefix start in the automaton.- See Also:
- Constant Field Values
-
_kind
public int _kind
One of the match types defined in this class.- See Also:
NO_MATCH,EXACT_MATCH,AUTOMATON_HAS_PREFIX,SEQUENCE_IS_A_PREFIX
-
_index
public int _index
Input sequence's index, interpretation depends on_kind.
-
_node
public int _node
Automaton node, interpretation depends on the_kind.
-
-