Class NgramAnalyzer.NgramAnalyzerFactory
java.lang.Object
com.apple.foundationdb.record.lucene.ngram.NgramAnalyzer.NgramAnalyzerFactory
- All Implemented Interfaces:
LuceneAnalyzerFactory
- Enclosing class:
- NgramAnalyzer
@AutoService(LuceneAnalyzerFactory.class)
public static class NgramAnalyzer.NgramAnalyzerFactory
extends Object
implements LuceneAnalyzerFactory
Factory for
NgramAnalyzer.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetIndexAnalyzerChooser(Index index) Get an instance ofAnalyzerChooserthat chooses the Lucene analyzer based on texts for indexing, given theIndex.getName()Get the unique name for the Lucene analyzer factory.getType()Get theLuceneAnalyzerTypefor the Lucene analyzer factory.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.lucene.LuceneAnalyzerFactory
getQueryAnalyzerChooser
-
Field Details
-
ANALYZER_FACTORY_NAME
- See Also:
-
-
Constructor Details
-
NgramAnalyzerFactory
public NgramAnalyzerFactory()
-
-
Method Details
-
getName
Description copied from interface:LuceneAnalyzerFactoryGet the unique name for the Lucene analyzer factory. This is the name that should be included in the index meta-data in order to indicate that this analyzer factory should be used within a certain index.- Specified by:
getNamein interfaceLuceneAnalyzerFactory- Returns:
- the name of the analyzer that this factory creates
-
getType
Description copied from interface:LuceneAnalyzerFactoryGet theLuceneAnalyzerTypefor the Lucene analyzer factory.- Specified by:
getTypein interfaceLuceneAnalyzerFactory- Returns:
- the
LuceneScanTypesused to determine how the analyzers build by this factory is used
-
getIndexAnalyzerChooser
Description copied from interface:LuceneAnalyzerFactoryGet an instance ofAnalyzerChooserthat chooses the Lucene analyzer based on texts for indexing, given theIndex. For a given factory, each indexing analyzer chosen should be of the same type, and it should match the result ofLuceneAnalyzerFactory.getName().- Specified by:
getIndexAnalyzerChooserin interfaceLuceneAnalyzerFactory- Parameters:
index- the index thi analyzer is used for- Returns:
- an instance of the
AnalyzerChooserfor indexing that this factory creates
-
equals
-
hashCode
public int hashCode()
-