Whether the query is fully consumed at stateIndex.
stateIndex
Returns true when all segments have been matched and the current tree position is a valid result.
bool isComplete(int stateIndex);