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 TokenStream
s to the underlying Analyzer
depending on the requested field name.Constructor and Description |
---|
ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer) |
ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer,
Map<String,org.apache.lucene.analysis.Analyzer> scopedAnalyzers) |
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.
|
String |
toString() |
createComponents, getOffsetGap, getPositionIncrementGap, initReader, wrapComponents, wrapReader
close, getReuseStrategy, getVersion, setVersion, tokenStream, tokenStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public ScopedLuceneAnalyzer(org.apache.lucene.analysis.Analyzer globalAnalyzer)
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.AnalyzerWrapper
Copyright © 2006–2017 Hibernate. All rights reserved.