Class MockTokenizerFactory


  • public class MockTokenizerFactory
    extends org.apache.lucene.analysis.TokenizerFactory
    Factory for MockTokenizer for testing purposes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      SPI name
      • Fields inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory

        LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.lucene.tests.analysis.MockTokenizer create​(org.apache.lucene.util.AttributeFactory factory)  
      • Methods inherited from class org.apache.lucene.analysis.TokenizerFactory

        availableTokenizers, create, findSPIName, forName, lookupClass, reloadTokenizers
      • Methods inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory

        defaultCtorException, get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
    • Constructor Detail

      • MockTokenizerFactory

        public MockTokenizerFactory​(Map<String,​String> args)
        Creates a new MockTokenizerFactory
      • MockTokenizerFactory

        public MockTokenizerFactory()
        Default ctor for compatibility with SPI
    • Method Detail

      • create

        public org.apache.lucene.tests.analysis.MockTokenizer create​(org.apache.lucene.util.AttributeFactory factory)
        Specified by:
        create in class org.apache.lucene.analysis.TokenizerFactory