Apache Lucene uses a modified form of the Brics automaton package. But is Brics thread safe?
More specifically, can it safely handle multiple, concurrent automaton instances from different threads - without blocking?
Apache Lucene uses a modified form of the Brics automaton package. But is Brics thread safe?
More specifically, can it safely handle multiple, concurrent automaton instances from different threads - without blocking?
Yes, constructing an Automaton or a RunAutomaton from a RegExp is thread safe - unless you use setAllowMutate.
thread safety depends upon how you use it, but the way in which we use it doesn't need to be thread safe.
thats because automatonquery's constructor compiles everything to a totally immutable form internally.