Package org.appng.api.search
Class DocumentProducer
- java.lang.Object
-
- org.appng.api.search.BlockingQueueAccessor<E>
-
- org.appng.api.search.Producer<DocumentEvent>
-
- org.appng.api.search.DocumentProducer
-
public class DocumentProducer extends Producer<DocumentEvent>
AProducer
that producesDocumentEvent
s. TODO appng-search is the better place for this- Author:
- Matthias Müller
- See Also:
Producer
-
-
Constructor Summary
Constructors Constructor Description DocumentProducer(int queueSize, Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass, String name)
Creates a newDocumentProducer
DocumentProducer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass, String name)
Creates a newDocumentProducer
with a queue size of 500
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends org.apache.lucene.analysis.Analyzer>
getAnalyzerClass()
Returns the type of theAnalyzer
used by thisDocumentProducer
.String
getName()
-
Methods inherited from class org.appng.api.search.BlockingQueueAccessor
get, get, getBlockingQueue, getWithTimeout, put, put, putWithTimeout
-
-
-
-
Constructor Detail
-
DocumentProducer
public DocumentProducer(int queueSize, Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass, String name)
Creates a newDocumentProducer
- Parameters:
queueSize
- the queue size for this produceranalyzerClass
- the type of theAnalyzer
to use for indexing the documentname
- the name for this producer
-
DocumentProducer
public DocumentProducer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass, String name)
Creates a newDocumentProducer
with a queue size of 500- Parameters:
analyzerClass
- the type of theAnalyzer
to use for indexing the documentname
- the name for this producer
-
-
Method Detail
-
getAnalyzerClass
public Class<? extends org.apache.lucene.analysis.Analyzer> getAnalyzerClass()
Returns the type of theAnalyzer
used by thisDocumentProducer
.- Returns:
- the type of the
Analyzer
-
getName
public String getName()
-
-