public class DocumentProducer extends Producer<DocumentEvent>
Producer
that produces DocumentEvent
s. TODO appng-search is the better place for thisProducer
Constructor and Description |
---|
DocumentProducer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass,
String name)
Creates a new
DocumentProducer with a queue size of 500 |
DocumentProducer(int queueSize,
Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass,
String name)
Creates a new
DocumentProducer |
Modifier and Type | Method and Description |
---|---|
Class<? extends org.apache.lucene.analysis.Analyzer> |
getAnalyzerClass()
Returns the type of the
Analyzer used by this DocumentProducer . |
String |
getName() |
get, get, getBlockingQueue, getWithTimeout, put, put, putWithTimeout
public DocumentProducer(int queueSize, Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass, String name)
DocumentProducer
queueSize
- the queue size for this produceranalyzerClass
- the type of the Analyzer
to use for indexing the documentname
- the name for this producerpublic DocumentProducer(Class<? extends org.apache.lucene.analysis.Analyzer> analyzerClass, String name)
DocumentProducer
with a queue size of 500analyzerClass
- the type of the Analyzer
to use for indexing the documentname
- the name for this producerpublic Class<? extends org.apache.lucene.analysis.Analyzer> getAnalyzerClass()
Analyzer
used by this DocumentProducer
.Analyzer
public String getName()
Copyright © 2011–2021 aiticon GmbH. All rights reserved.