public final class ConcurrentlyMutableAnalyzer
extends org.apache.lucene.analysis.DelegatingAnalyzerWrapper
| Constructor and Description |
|---|
ConcurrentlyMutableAnalyzer(org.apache.lucene.analysis.Analyzer initialAnalyzer) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer |
getWrappedAnalyzer(String fieldName) |
boolean |
isCompatibleWith(ScopedLuceneAnalyzer analyzer)
Checks if the currently set Analyzer is the same as the
proposed one, in which case there is no need for
replacements or locking.
|
void |
updateAnalyzer(ScopedLuceneAnalyzer analyzer)
Correct concurrency control requires external locking!
|
wrapComponents, wrapReadercreateComponents, getOffsetGap, getPositionIncrementGap, initReaderpublic ConcurrentlyMutableAnalyzer(org.apache.lucene.analysis.Analyzer initialAnalyzer)
protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
getWrappedAnalyzer in class org.apache.lucene.analysis.AnalyzerWrapperpublic boolean isCompatibleWith(ScopedLuceneAnalyzer analyzer)
analyzer - the ScopedLuceneAnalyzer to use for comparisonpublic void updateAnalyzer(ScopedLuceneAnalyzer analyzer)
analyzer - the ScopedLuceneAnalyzer to use for lockingCopyright © 2006–2017 Hibernate. All rights reserved.