public class XMLFileIndexingWriterFactory
extends java.lang.Object
XMLFileIndexingWriter
Constructor and Description |
---|
XMLFileIndexingWriterFactory(RecordDataService rds,
SimpleLuceneIndex simpleLuceneIndex,
XMLIndexerFieldsConfig xmlIndexerFieldsConfig)
Constructor for use when a RecordDataService is needed.
|
XMLFileIndexingWriterFactory(RecordDataService rds,
SimpleLuceneIndex simpleLuceneIndex,
XMLIndexerFieldsConfig xmlIndexerFieldsConfig,
java.util.Hashtable additionalIndexers)
Constructor for use when a RecordDataService is needed.
|
XMLFileIndexingWriterFactory(SimpleLuceneIndex simpleLuceneIndex,
XMLIndexerFieldsConfig xmlIndexerFieldsConfig)
Constructor for use when no RecordDataService is needed.
|
Modifier and Type | Method and Description |
---|---|
XMLFileIndexingWriter |
getIndexingWriter(java.lang.String collection,
java.lang.String xmlFormat)
Gets the XML indexingWriter appropriate for indexing the given xml format.
|
java.lang.Class |
getIndexingWriterClass(java.lang.String xmlFormat)
returns a FileIndexing Class that can be instantiated
|
public XMLFileIndexingWriterFactory(SimpleLuceneIndex simpleLuceneIndex, XMLIndexerFieldsConfig xmlIndexerFieldsConfig)
index
- The index being usedpublic XMLFileIndexingWriterFactory(RecordDataService rds, SimpleLuceneIndex simpleLuceneIndex, XMLIndexerFieldsConfig xmlIndexerFieldsConfig, java.util.Hashtable additionalIndexers)
rds
- The RecordDataService being used, or null if none needed.simpleLuceneIndex
- The index being usedadditionalIndexers
- public XMLFileIndexingWriterFactory(RecordDataService rds, SimpleLuceneIndex simpleLuceneIndex, XMLIndexerFieldsConfig xmlIndexerFieldsConfig)
rds
- The RecordDataService being used, or null if none needed.simpleLuceneIndex
- The index being usedpublic java.lang.Class getIndexingWriterClass(java.lang.String xmlFormat)
xmlFormat
- public XMLFileIndexingWriter getIndexingWriter(java.lang.String collection, java.lang.String xmlFormat) throws java.lang.Exception
collection
- The collection key, for example dcc, comet, etc.xmlFormat
- The xml format specifier, for example adn, news_opps, dlese_collect.java.lang.Exception
- If error creating the writer