Uses of Class
org.apache.lucene.util.automaton.Automaton
Packages that use Automaton
Package
Description
Text analysis.
Miscellaneous Tokenstreams.
Set of components for pattern-based (regex) analysis.
BlockTree terms dictionary.
BlockTree terms dictionary.
Pluggable term index / block terms dictionary implementations.
Code to maintain and access indices.
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Analyzer based autosuggest.
Support for document suggestion
Finite-state automaton for regular expressions.
Utility classes for working with token streams as graphs.
-
Uses of Automaton in org.apache.lucene.analysis
Methods in org.apache.lucene.analysis that return AutomatonModifier and TypeMethodDescriptionTokenStreamToAutomaton.toAutomaton(TokenStream in) Pulls the graph (includingPositionLengthAttribute) from the providedTokenStream, and creates the corresponding automaton where arcs are bytes (or Unicode code points if unicodeArcs = true) from each term.Methods in org.apache.lucene.analysis with parameters of type AutomatonModifier and TypeMethodDescriptionstatic TokenStreamAutomatonToTokenStream.toTokenStream(Automaton automaton) converts an automaton into a TokenStream. -
Uses of Automaton in org.apache.lucene.analysis.miscellaneous
Methods in org.apache.lucene.analysis.miscellaneous that return AutomatonModifier and TypeMethodDescriptionprivate static AutomatonConcatenateGraphFilter.replaceSep(Automaton a, Character tokenSeparator) ConcatenateGraphFilter.toAutomaton()Converts the tokenStream to an automaton, treating the transition labels as utf-8.ConcatenateGraphFilter.toAutomaton(boolean unicodeAware) Converts the tokenStream to an automaton.Methods in org.apache.lucene.analysis.miscellaneous with parameters of type AutomatonModifier and TypeMethodDescriptionprivate static AutomatonConcatenateGraphFilter.replaceSep(Automaton a, Character tokenSeparator) -
Uses of Automaton in org.apache.lucene.analysis.pattern
Fields in org.apache.lucene.analysis.pattern declared as AutomatonModifier and TypeFieldDescriptionprivate final AutomatonSimplePatternSplitTokenizerFactory.dfaprivate final AutomatonSimplePatternTokenizerFactory.dfaConstructors in org.apache.lucene.analysis.pattern with parameters of type AutomatonModifierConstructorDescriptionSimplePatternSplitTokenizer(AttributeFactory factory, Automaton dfa) Runs a pre-built automaton.Runs a pre-built automaton.SimplePatternTokenizer(AttributeFactory factory, Automaton dfa) Runs a pre-built automaton.Runs a pre-built automaton. -
Uses of Automaton in org.apache.lucene.backward_codecs.lucene40.blocktree
Fields in org.apache.lucene.backward_codecs.lucene40.blocktree declared as AutomatonConstructors in org.apache.lucene.backward_codecs.lucene40.blocktree with parameters of type AutomatonModifierConstructorDescriptionIntersectTermsEnum(FieldReader fr, Automaton automaton, RunAutomaton runAutomaton, BytesRef commonSuffix, BytesRef startTerm) -
Uses of Automaton in org.apache.lucene.codecs.lucene90.blocktree
Fields in org.apache.lucene.codecs.lucene90.blocktree declared as AutomatonConstructors in org.apache.lucene.codecs.lucene90.blocktree with parameters of type AutomatonModifierConstructorDescriptionIntersectTermsEnum(FieldReader fr, Automaton automaton, RunAutomaton runAutomaton, BytesRef commonSuffix, BytesRef startTerm) -
Uses of Automaton in org.apache.lucene.codecs.uniformsplit
Fields in org.apache.lucene.codecs.uniformsplit declared as Automaton -
Uses of Automaton in org.apache.lucene.index
Fields in org.apache.lucene.index declared as AutomatonMethods in org.apache.lucene.index with parameters of type AutomatonModifier and TypeMethodDescriptionprivate static voidCheckIndex.checkTermsIntersect(Terms terms, Automaton automaton, BytesRef startTerm) -
Uses of Automaton in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as AutomatonModifier and TypeFieldDescription(package private) final AutomatonTermAutomatonQuery.TermAutomatonWeight.automaton(package private) AutomatonTermAutomatonQuery.detConstructors in org.apache.lucene.sandbox.search with parameters of type AutomatonModifierConstructorDescriptionTermAutomatonWeight(Automaton automaton, IndexSearcher searcher, IntObjectHashMap<TermStates> termStates, float boost) TermRunAutomaton(Automaton a, int termCount) -
Uses of Automaton in org.apache.lucene.search
Fields in org.apache.lucene.search declared as AutomatonModifier and TypeFieldDescriptionprotected final AutomatonAutomatonQuery.automatonthe automaton to match index terms againstMethods in org.apache.lucene.search that return AutomatonModifier and TypeMethodDescriptionAutomatonQuery.getAutomaton()Returns the automaton used to create this querystatic AutomatonPrefixQuery.toAutomaton(BytesRef prefix) Build an automaton accepting all terms with the specified prefix.static AutomatonTermRangeQuery.toAutomaton(BytesRef lowerTerm, BytesRef upperTerm, boolean includeLower, boolean includeUpper) static AutomatonWildcardQuery.toAutomaton(Term wildcardquery) Convert Lucene wildcard syntax into an automaton.Constructors in org.apache.lucene.search with parameters of type AutomatonModifierConstructorDescriptionAutomatonQuery(Term term, Automaton automaton) Create a new AutomatonQuery from anAutomaton.AutomatonQuery(Term term, Automaton automaton, int determinizeWorkLimit) Create a new AutomatonQuery from anAutomaton.AutomatonQuery(Term term, Automaton automaton, int determinizeWorkLimit, boolean isBinary) Create a new AutomatonQuery from anAutomaton.AutomatonQuery(Term term, Automaton automaton, int determinizeWorkLimit, boolean isBinary, MultiTermQuery.RewriteMethod rewriteMethod) Create a new AutomatonQuery from anAutomaton. -
Uses of Automaton in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing that return AutomatonModifier and TypeMethodDescriptionprotected AutomatonAnalyzingSuggester.convertAutomaton(Automaton a) Used by subclass to change the lookup automaton, if necessary.protected AutomatonFuzzySuggester.convertAutomaton(Automaton a) private AutomatonAnalyzingSuggester.replaceSep(Automaton a) (package private) final AutomatonAnalyzingSuggester.toAutomaton(BytesRef surfaceForm, TokenStreamToAutomaton ts2a) (package private) AutomatonFuzzySuggester.toLevenshteinAutomata(Automaton automaton) (package private) final AutomatonAnalyzingSuggester.toLookupAutomaton(CharSequence key) Methods in org.apache.lucene.search.suggest.analyzing with parameters of type AutomatonModifier and TypeMethodDescriptionprotected AutomatonAnalyzingSuggester.convertAutomaton(Automaton a) Used by subclass to change the lookup automaton, if necessary.protected AutomatonFuzzySuggester.convertAutomaton(Automaton a) protected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> AnalyzingSuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) Returns all prefix paths to initialize the search.protected List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> FuzzySuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long, BytesRef>>> prefixPaths, Automaton lookupAutomaton, FST<PairOutputs.Pair<Long, BytesRef>> fst) static <T> List<FSTUtil.Path<T>> FSTUtil.intersectPrefixPaths(Automaton a, FST<T> fst) Enumerates all minimal prefix paths in the automaton that also intersect the FST, accumulating the FST end node and output for each path.private AutomatonAnalyzingSuggester.replaceSep(Automaton a) (package private) AutomatonFuzzySuggester.toLevenshteinAutomata(Automaton automaton) -
Uses of Automaton in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as AutomatonModifier and TypeFieldDescription(package private) final AutomatonCompletionScorer.automatonprivate final AutomatonCompletionWeight.automatonMethods in org.apache.lucene.search.suggest.document that return AutomatonModifier and TypeMethodDescriptionCompletionWeight.getAutomaton()Returns the automaton specified by theCompletionQueryCompletionTokenStream.toAutomaton()Delegates to...AtCompletionTokenStream.toAutomaton(boolean unicodeAware) Delegates to...private static AutomatonContextQuery.toContextAutomaton(Map<IntsRef, ContextQuery.ContextMetaData> contexts, boolean matchAllContexts) private AutomatonFuzzyCompletionQuery.toLevenshteinAutomata(Automaton automaton, Set<IntsRef> refs) Methods in org.apache.lucene.search.suggest.document with parameters of type AutomatonModifier and TypeMethodDescriptionprivate AutomatonFuzzyCompletionQuery.toLevenshteinAutomata(Automaton automaton, Set<IntsRef> refs) Constructors in org.apache.lucene.search.suggest.document with parameters of type AutomatonModifierConstructorDescriptionprotectedCompletionScorer(CompletionWeight weight, NRTSuggester suggester, LeafReader reader, Bits filterDocs, boolean filtered, Automaton automaton) Creates a scorer for a field-specificsuggesterscoped byacceptDocsCompletionWeight(CompletionQuery query, Automaton automaton) Creates a weight forquerywith anautomaton, using thereaderfor index statsContextCompletionWeight(CompletionQuery query, Automaton automaton, CompletionWeight innerWeight, Map<IntsRef, Float> contextMap, int[] contextLengths) FuzzyCompletionWeight(CompletionQuery query, Automaton automaton, Set<IntsRef> refs) -
Uses of Automaton in org.apache.lucene.util.automaton
Fields in org.apache.lucene.util.automaton declared as AutomatonModifier and TypeFieldDescriptionprivate final AutomatonFiniteStringsIterator.aAutomaton to create finite string from.final AutomatonCompiledAutomaton.automatonTwo dimensional array of transitions, indexed by state number for traversal.(package private) final AutomatonRunAutomaton.automatonprivate final AutomatonTooComplexToDeterminizeException.automatonMethods in org.apache.lucene.util.automaton that return AutomatonModifier and TypeMethodDescriptionstatic AutomatonDeprecated.(package private) static AutomatonDeprecated.Build a minimal, deterministic automaton from a sorted list ofBytesRefrepresenting strings in UTF-8.(package private) static AutomatonDaciukMihovAutomatonBuilder.build(BytesRefIterator input, boolean asBinary) Deprecated.Build a minimal, deterministic automaton from a sorted list ofBytesRefrepresenting strings in UTF-8.static AutomatonOperations.complement(Automaton a, int determinizeWorkLimit) Returns a (deterministic) automaton that accepts the complement of the language of the given automaton.private AutomatonDaciukMihovAutomatonBuilder.completeAndConvert()Deprecated.Called after adding all terms.static AutomatonOperations.concatenate(List<Automaton> l) Returns an automaton that accepts the concatenation of the languages of the given automata.static AutomatonOperations.concatenate(Automaton a1, Automaton a2) Returns an automaton that accepts the concatenation of the languages of the given automata.Converts an incoming utf32 automaton to an equivalent utf8 one.static AutomatonOperations.determinize(Automaton a, int workLimit) Determinizes the given automaton.Automaton.Builder.finish()Compiles all added states and transitions into a newAutomatonand returns it.AutomatonProvider.getAutomaton(String name) Returns automaton of the given name.TooComplexToDeterminizeException.getAutomaton()Returns the automaton that caused this exception, if any.static AutomatonOperations.intersection(Automaton a1, Automaton a2) Returns an automaton that accepts the intersection of the languages of the given automata.static AutomatonAutomata.makeAnyBinary()Returns a new (deterministic) automaton that accepts all binary terms.static AutomatonAutomata.makeAnyChar()Returns a new (deterministic) automaton that accepts any single codepoint.static AutomatonAutomata.makeAnyString()Returns a new (deterministic) automaton that accepts all strings.static AutomatonAutomata.makeBinary(BytesRef term) Returns a new (deterministic) automaton that accepts the single given binary term.static AutomatonAutomata.makeBinaryInterval(BytesRef min, boolean minInclusive, BytesRef max, boolean maxInclusive) Creates a new deterministic, minimal automaton accepting all binary terms in the specified interval.static AutomatonAutomata.makeBinaryStringUnion(Iterable<BytesRef> utf8Strings) Returns a new (deterministic and minimal) automaton that accepts the union of the given collection ofBytesRefs representing UTF-8 encoded strings.static AutomatonAutomata.makeBinaryStringUnion(BytesRefIterator utf8Strings) Returns a new (deterministic and minimal) automaton that accepts the union of the given iterator ofBytesRefs representing UTF-8 encoded strings.static AutomatonAutomata.makeChar(int c) Returns a new (deterministic) automaton that accepts a single codepoint of the given value.static AutomatonAutomata.makeCharRange(int min, int max) Returns a new (deterministic) automaton that accepts a single codepoint whose value is in the given interval (including both end points).static AutomatonAutomata.makeDecimalInterval(int min, int max, int digits) Returns a new automaton that accepts strings representing decimal (base 10) non-negative integers in the given interval.static AutomatonAutomata.makeEmpty()Returns a new (deterministic) automaton with the empty language.static AutomatonAutomata.makeEmptyString()Returns a new (deterministic) automaton that accepts only the empty string.static AutomatonAutomata.makeNonEmptyBinary()Returns a new (deterministic) automaton that accepts all binary terms except the empty string.static AutomatonAutomata.makeString(int[] word, int offset, int length) Returns a new (deterministic) automaton that accepts the single given string from the specified unicode code points.static AutomatonAutomata.makeString(String s) Returns a new (deterministic) automaton that accepts the single given string.static AutomatonAutomata.makeStringUnion(Iterable<BytesRef> utf8Strings) Returns a new (deterministic and minimal) automaton that accepts the union of the given collection ofBytesRefs representing UTF-8 encoded strings.static AutomatonAutomata.makeStringUnion(BytesRefIterator utf8Strings) Returns a new (deterministic and minimal) automaton that accepts the union of the given iterator ofBytesRefs representing UTF-8 encoded strings.static AutomatonMinimizes (and determinizes if not already deterministic) the given automaton using Hopcroft's algorithm.static AutomatonReturns a (deterministic) automaton that accepts the intersection of the language ofa1and the complement of the language ofa2.static AutomatonReturns an automaton that accepts the union of the empty string and the language of the given automaton.static AutomatonOperations.removeDeadStates(Automaton a) Removes transitions to dead states (a state is "dead" if it is not reachable from the initial state or no accept state is reachable from it.)static AutomatonReturns an automaton that accepts the Kleene star (zero or more concatenated repetitions) of the language of the given automaton.static AutomatonReturns an automaton that acceptsminor more concatenated repetitions of the language of the given automaton.static AutomatonReturns an automaton that accepts betweenminandmax(including both) concatenated repetitions of the language of the given automaton.static AutomatonReturns an automaton accepting the reverse language.static AutomatonReverses the automaton, returning the new initial states.LevenshteinAutomata.toAutomaton(int n) Compute a DFA that accepts all strings within an edit distance ofn.LevenshteinAutomata.toAutomaton(int n, String prefix) Compute a DFA that accepts all strings within an edit distance ofn, matching the specified exact prefix.RegExp.toAutomaton()Constructs newAutomatonfrom thisRegExp.RegExp.toAutomaton(int determinizeWorkLimit) Constructs newAutomatonfrom thisRegExp.RegExp.toAutomaton(Map<String, Automaton> automata, int determinizeWorkLimit) Constructs newAutomatonfrom thisRegExp.private AutomatonRegExp.toAutomaton(Map<String, Automaton> automata, AutomatonProvider automaton_provider, int determinizeWorkLimit) RegExp.toAutomaton(AutomatonProvider automaton_provider, int determinizeWorkLimit) Constructs newAutomatonfrom thisRegExp.private AutomatonRegExp.toAutomatonInternal(Map<String, Automaton> automata, AutomatonProvider automaton_provider, int determinizeWorkLimit) private AutomatonRegExp.toCaseInsensitiveChar(int codepoint, int determinizeWorkLimit) private AutomatonRegExp.toCaseInsensitiveString(int determinizeWorkLimit) (package private) static AutomatonReturns a new automaton accepting the same language with added transitions to a dead state so that from every state and every label there is a transition.static AutomatonOperations.union(Collection<Automaton> l) Returns an automaton that accepts the union of the languages of the given automata.static AutomatonReturns an automaton that accepts the union of the languages of the given automata.Methods in org.apache.lucene.util.automaton with parameters of type AutomatonModifier and TypeMethodDescriptionstatic intAutomata.appendAnyChar(Automaton a, int state) Accept any single character starting from the specified state, returning the new statestatic intAutomata.appendChar(Automaton a, int state, int c) Appends the specified character to the specified state, returning a new state.static AutomatonOperations.complement(Automaton a, int determinizeWorkLimit) Returns a (deterministic) automaton that accepts the complement of the language of the given automaton.static AutomatonOperations.concatenate(Automaton a1, Automaton a2) Returns an automaton that accepts the concatenation of the languages of the given automata.Converts an incoming utf32 automaton to an equivalent utf8 one.voidCopies over all states/transitions from other.voidCopies over all states/transitions from other.voidAutomaton.Builder.copyStates(Automaton other) Copies over all states from other.static AutomatonOperations.determinize(Automaton a, int workLimit) Determinizes the given automaton.private static intCompiledAutomaton.findSinkState(Automaton automaton) Returns sink state, if present, else -1.static StringOperations.getCommonPrefix(Automaton a) Returns the longest string that is a prefix of all accepted strings and visits each state at most once.static BytesRefOperations.getCommonPrefixBytesRef(Automaton a) Returns the longest BytesRef that is a prefix of all accepted strings and visits each state at most once.static BytesRefOperations.getCommonSuffixBytesRef(Automaton a) Returns the longest BytesRef that is a suffix of all accepted strings.private static BitSetOperations.getLiveStates(Automaton a) Returns the set of live states.private static BitSetOperations.getLiveStatesFromInitial(Automaton a) Returns bitset marking states reachable from the initial state.private static BitSetOperations.getLiveStatesToAccept(Automaton a) Returns bitset marking states that can reach an accept state.static IntsRefOperations.getSingleton(Automaton a) If this automaton accepts a single input, return it.static booleanOperations.hasDeadStates(Automaton a) Returns true if this automaton has any states that cannot be reached from the initial state or cannot reach an accept state.static booleanOperations.hasDeadStatesFromInitial(Automaton a) Returns true if there are dead states reachable from an initial state.static booleanOperations.hasDeadStatesToAccept(Automaton a) Returns true if there are dead states that reach an accept state.static AutomatonOperations.intersection(Automaton a1, Automaton a2) Returns an automaton that accepts the intersection of the languages of the given automata.static booleanReturns true if the given automaton accepts no strings.static booleanReturns true if the language of this automaton is finite.private static booleanOperations.isFinite(Transition scratch, Automaton a, int state, BitSet path, BitSet visited, int level) Checks whether there is a loop containing state.static booleanReturns true if the given automaton accepts all strings.static booleanReturns true if the given automaton accepts all strings for the specified min/max range of the alphabet.static AutomatonMinimizes (and determinizes if not already deterministic) the given automaton using Hopcroft's algorithm.static AutomatonReturns a (deterministic) automaton that accepts the intersection of the language ofa1and the complement of the language ofa2.intReturns next label of current transition, or advances to next transition and returns its first label, if current one is exhausted.static AutomatonReturns an automaton that accepts the union of the empty string and the language of the given automaton.static AutomatonOperations.removeDeadStates(Automaton a) Removes transitions to dead states (a state is "dead" if it is not reachable from the initial state or no accept state is reachable from it.)static AutomatonReturns an automaton that accepts the Kleene star (zero or more concatenated repetitions) of the language of the given automaton.static AutomatonReturns an automaton that acceptsminor more concatenated repetitions of the language of the given automaton.static AutomatonReturns an automaton that accepts betweenminandmax(including both) concatenated repetitions of the language of the given automaton.voidFiniteStringsIterator.PathNode.resetState(Automaton a, int state) static AutomatonReturns an automaton accepting the reverse language.static AutomatonReverses the automaton, returning the new initial states.static booleanReturns true if the given string is accepted by the automaton.static booleanReturns true if the given string (expressed as unicode codepoints) is accepted by the automaton.static booleanOperations.sameLanguage(Automaton a1, Automaton a2) Returns true if these two automata accept exactly the same language.static booleanReturns true if the language ofa1is a subset of the language ofa2.static int[]Operations.topoSortStates(Automaton a) Returns the topological sort of all states reachable from the initial state.private static intOperations.topoSortStates(Automaton a, int[] states) Performs a topological sort on the states of the given Automaton.private static IntHashSet(package private) static AutomatonReturns a new automaton accepting the same language with added transitions to a dead state so that from every state and every label there is a transition.static AutomatonReturns an automaton that accepts the union of the languages of the given automata.Method parameters in org.apache.lucene.util.automaton with type arguments of type AutomatonModifier and TypeMethodDescriptionstatic AutomatonOperations.concatenate(List<Automaton> l) Returns an automaton that accepts the concatenation of the languages of the given automata.private voidRegExp.findLeaves(RegExp exp, RegExp.Kind kind, List<Automaton> list, Map<String, Automaton> automata, AutomatonProvider automaton_provider, int determinizeWorkLimit) private voidRegExp.findLeaves(RegExp exp, RegExp.Kind kind, List<Automaton> list, Map<String, Automaton> automata, AutomatonProvider automaton_provider, int determinizeWorkLimit) RegExp.toAutomaton(Map<String, Automaton> automata, int determinizeWorkLimit) Constructs newAutomatonfrom thisRegExp.private AutomatonRegExp.toAutomaton(Map<String, Automaton> automata, AutomatonProvider automaton_provider, int determinizeWorkLimit) private AutomatonRegExp.toAutomatonInternal(Map<String, Automaton> automata, AutomatonProvider automaton_provider, int determinizeWorkLimit) static AutomatonOperations.union(Collection<Automaton> l) Returns an automaton that accepts the union of the languages of the given automata.Constructors in org.apache.lucene.util.automaton with parameters of type AutomatonModifierConstructorDescriptionConverts incoming automaton to byte-based (UTF32ToUTF8) firstByteRunAutomaton(Automaton a, boolean isBinary, int determinizeWorkLimit) expert: if isBinary is true, the input is already byte-basedConstruct with a default number of determinizeWorkLimit.CharacterRunAutomaton(Automaton a, int determinizeWorkLimit) Constructor specifying determinizeWorkLimit.CompiledAutomaton(Automaton automaton) Create this, passing simplify=true and finite=null, so that we try to simplify the automaton and determine if it is finite.CompiledAutomaton(Automaton automaton, Boolean finite, boolean simplify) Create this.CompiledAutomaton(Automaton automaton, Boolean finite, boolean simplify, int determinizeWorkLimit, boolean isBinary) Create this.Constructor.FiniteStringsIterator(Automaton a, int startState, int endState) Constructor.LimitedFiniteStringsIterator(Automaton a, int limit) Constructor.protectedRunAutomaton(Automaton a, int alphabetSize) Constructs a newRunAutomatonfrom a deterministicAutomaton.protectedRunAutomaton(Automaton a, int alphabetSize, int determinizeWorkLimit) Constructs a newRunAutomatonfrom a deterministicAutomaton.TooComplexToDeterminizeException(Automaton automaton, int determinizeWorkLimit) Use this constructor when the automaton failed to determinize. -
Uses of Automaton in org.apache.lucene.util.graph
Fields in org.apache.lucene.util.graph declared as AutomatonMethods in org.apache.lucene.util.graph that return AutomatonModifier and TypeMethodDescriptionprivate AutomatonGraphTokenStreamFiniteStrings.build(TokenStream in) Build an automaton from the providedTokenStream.Methods in org.apache.lucene.util.graph with parameters of type AutomatonModifier and TypeMethodDescriptionprivate static voidGraphTokenStreamFiniteStrings.articulationPointsRecurse(Automaton a, int state, int d, int[] depth, int[] low, int[] parent, BitSet visited, IntArrayList points)
Automata.makeStringUnion(Iterable)instead