Class CompiledAutomaton


  • public class CompiledAutomaton
    extends java.lang.Object
    Immutable class holding compiled details for a given Automaton. The Automaton is deterministic, must not have dead states but is not necessarily minimal.
    • Constructor Detail

      • CompiledAutomaton

        public CompiledAutomaton​(Automaton automaton)
      • CompiledAutomaton

        public CompiledAutomaton​(Automaton automaton,
                                 java.lang.Boolean finite,
                                 boolean simplify)
    • Method Detail

      • getTermsEnum

        public TermsEnum getTermsEnum​(Terms terms)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • floor

        public BytesRef floor​(BytesRef input,
                              BytesRef output)
        Finds largest term accepted by this Automaton, that's <= the provided input term. The result is placed in output; it's fine for output and input to point to the same BytesRef. The returned result is either the provided output, or null if there is no floor term (ie, the provided input term is before the first term accepted by this Automaton).
      • toDot

        public java.lang.String toDot()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object