Class AutomatonTermsEnum

  • All Implemented Interfaces:
    BytesRefIterator

    public class AutomatonTermsEnum
    extends FilteredTermsEnum
    A FilteredTermsEnum that enumerates terms based upon what is accepted by a DFA.

    The algorithm is such:

    1. As long as matches are successful, keep reading sequentially.
    2. When a match fails, skip to the next string in lexicographic order that does not enter a reject state.

    The algorithm does not attempt to actually skip to the next string that is completely accepted. This is not possible when the language accepted by the FSM is not finite (i.e. * operator).

    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.