Package org.dlese.dpc.index.writer
Interface DocWriter
- All Known Implementing Classes:
ADNFileIndexingWriter,DleseAnnoFileIndexingServiceWriter,DleseCollectionFileIndexingWriter,DleseIMSFileIndexingWriter,ErrorFileIndexingWriter,FileIndexingServiceWriter,HarvestLogWriter,ItemFileIndexingWriter,NCSCollectionFileIndexingWriter,NewsOppsFileIndexingWriter,SimpleXMLFileIndexingWriter,WebLogEntryWriter,WebLogWriter,XMLFileIndexingWriter
public interface DocWriter
Abstract class for creating a typed Lucene
Document. A DocReader should be implemented to read Documents of this type.- Author:
- John Weatherley
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a unique document type key for this kind of document, corresponding to the format type.Gets the name of the concreteDocReaderclass that is used to read this type ofDocument, for example "org.dlese.dpc.index.reader.ItemDocReader".
-
Method Details
-
getDocType
Returns a unique document type key for this kind of document, corresponding to the format type. For example "dleseims". The string is parsed using the LuceneStandardAnalyzerso it must be lowercase and should not contain any stop words.- Returns:
- The docType String
- Throws:
Exception- This method should throw and Exception with appropriate error message if an error occurs.
-
getReaderClass
String getReaderClass()Gets the name of the concreteDocReaderclass that is used to read this type ofDocument, for example "org.dlese.dpc.index.reader.ItemDocReader". The class name is used by theResultDocfactory to return the appropriate DocReader.- Returns:
- The name of the
DocReader
-