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(ScopedAnalyzer 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(ScopedAnalyzer analyzer)
Correct concurrency control requires external locking!
|
wrapComponents, wrapReader
createComponents, getOffsetGap, getPositionIncrementGap, initReader
public ConcurrentlyMutableAnalyzer(org.apache.lucene.analysis.Analyzer initialAnalyzer)
protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
getWrappedAnalyzer
in class org.apache.lucene.analysis.AnalyzerWrapper
public boolean isCompatibleWith(ScopedAnalyzer analyzer)
analyzer
- the ScopedAnalyzer
to use for comparisonpublic void updateAnalyzer(ScopedAnalyzer analyzer)
analyzer
- the ScopedAnalyzer
to use for lockingCopyright © 2006–2016 Hibernate. All rights reserved.