Class DocumentProducer

    • Constructor Detail

      • DocumentProducer

        public DocumentProducer​(int queueSize,
                                Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass,
                                String name)
        Creates a new DocumentProducer
        Parameters:
        queueSize - the queue size for this producer
        analyzerClass - the type of the Analyzer to use for indexing the document
        name - the name for this producer
      • DocumentProducer

        public DocumentProducer​(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass,
                                String name)
        Creates a new DocumentProducer with a queue size of 500
        Parameters:
        analyzerClass - the type of the Analyzer to use for indexing the document
        name - the name for this producer
    • Method Detail

      • getAnalyzerClass

        public Class<? extends org.apache.lucene.analysis.Analyzer> getAnalyzerClass()
        Returns the type of the Analyzer used by this DocumentProducer.
        Returns:
        the type of the Analyzer
      • getName

        public String getName()