public final class ScopedLuceneAnalyzer extends org.apache.lucene.analysis.AnalyzerWrapper implements ScopedAnalyzer
ScopedLuceneAnalyzer is a wrapper class containing all analyzers for a given class.
ScopedLuceneAnalyzer behaves similar to PerFieldAnalyzerWrapper
by delegating requests for TokenStreams to the underlying Analyzer depending on the requested field name.| Modifier and Type | Class and Description |
|---|---|
static class |
ScopedLuceneAnalyzer.Builder |
| Constructor and Description |
|---|
ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer) |
ScopedLuceneAnalyzer(LuceneAnalyzerReference globalAnalyzerReference) |
ScopedLuceneAnalyzer(ScopedLuceneAnalyzer.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.lucene.analysis.Analyzer |
getWrappedAnalyzer(String fieldName) |
boolean |
isCompositeOfSameInstances(ScopedLuceneAnalyzer other)
Compares the references of the global analyzer backing this ScopedAnalyzer
and each scoped analyzer.
|
ScopedLuceneAnalyzer.Builder |
startCopy() |
String |
toString() |
createComponents, getOffsetGap, getPositionIncrementGap, initReader, wrapComponents, wrapReaderclose, getReuseStrategy, getVersion, setVersion, tokenStream, tokenStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclosepublic ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer)
public ScopedLuceneAnalyzer(LuceneAnalyzerReference globalAnalyzerReference)
public ScopedLuceneAnalyzer(ScopedLuceneAnalyzer.Builder builder)
public boolean isCompositeOfSameInstances(ScopedLuceneAnalyzer other)
other - ScopedAnalyzer to compare toprotected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer(String fieldName)
getWrappedAnalyzer in class org.apache.lucene.analysis.AnalyzerWrapperpublic ScopedLuceneAnalyzer.Builder startCopy()
startCopy in interface ScopedAnalyzerCopyright © 2006–2016 Hibernate. All rights reserved.