|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dlese.dpc.index.writer.FileIndexingServiceWriter
org.dlese.dpc.index.writer.XMLFileIndexingWriter
org.dlese.dpc.index.writer.DleseAnnoFileIndexingServiceWriter
Creates a Lucene Documents for a DLESE
annotation record.
The Lucene fields that are created by this class are:
collection - The collection associated with this
resource. Stored. Appended with a '0' at the beginning to support wildcard
searching.
DleseAnnoDocReader| Field Summary |
|---|
| Fields inherited from class org.dlese.dpc.index.writer.XMLFileIndexingWriter |
|---|
recordDataService, vocab |
| Constructor Summary | |
|---|---|
DleseAnnoFileIndexingServiceWriter(String collection,
RecordDataService recordDataService)
Create a DleseAnnoFileIndexingServiceWriter that indexes the given collection in field collection. |
|
| Method Summary | |
|---|---|
protected void |
addFields(Document newDoc,
Document existingDoc,
File sourceFile)
Adds additional custom fields that are unique to the dlese anno document format being indexed. |
protected void |
destroy()
This method is called at the conclusion of processing and may be used for tear-down. |
String |
getCollection()
Returns unique collection keys for the item being indexed, separated by spaces. |
String |
getDocType()
Gets the docType attribute of the DleseAnnoFileIndexingServiceWriter object |
String |
getId()
Returns unique IDs for the item being indexed, one for each collection that catalog the resource, separted by spaces. |
String |
getReaderClass()
Gets the fully qualified name of the concrete DocReader class that is used to read this type
of Document, for example
"org.dlese.dpc.index.reader.ItemDocReader". |
protected String |
getValidationReport()
Gets a report detailing any errors found in the validation of the data, or null if no error was found. |
void |
init(File source,
Document existingDoc)
This method is called prior to processing and may be used to for any necessary set-up. |
| Methods inherited from class org.dlese.dpc.index.writer.XMLFileIndexingWriter |
|---|
addCustomFields, getFieldContent, getFieldContent, getFieldName, getOaiModtime |
| Methods inherited from class org.dlese.dpc.index.writer.FileIndexingServiceWriter |
|---|
abortIndexing, addToAdminDefaultField, addToDefaultField, create, getDeletedDoc, getExistingDoc, getFileIndexingService, getSourceDir, getSourceFile, isValidationEnabled, prtln, prtlnErr, setDebug, setDefaultFieldName, setFileIndexingService, setValidationEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DleseAnnoFileIndexingServiceWriter(String collection,
RecordDataService recordDataService)
collection - A name for the collection| Method Detail |
public String getCollection()
XMLFileIndexingWriter
getCollection in class XMLFileIndexingWriter
public String getDocType()
throws Exception
getDocType in interface DocWritergetDocType in class FileIndexingServiceWriterException - if errorpublic String getReaderClass()
DocReader class that is used to read this type
of Document, for example
"org.dlese.dpc.index.reader.ItemDocReader".
getReaderClass in interface DocWritergetReaderClass in class FileIndexingServiceWriterDocReader.
public void init(File source,
Document existingDoc)
throws Exception
init in class FileIndexingServiceWritersource - The source file being indexedexistingDoc - An existing Document that currently resides in the
index for the given resource, or null if none was previously present
Exception - If an error occured during set-up.
protected String getValidationReport()
throws Exception
getValidationReport in class FileIndexingServiceWriterException - If error in performing the validation.protected void destroy()
destroy in class FileIndexingServiceWriterpublic String getId()
XMLFileIndexingWriter
getId in class XMLFileIndexingWriter
protected void addFields(Document newDoc,
Document existingDoc,
File sourceFile)
throws Exception
addFields in class XMLFileIndexingWriternewDoc - The new Document
that is being created for this resourceexistingDoc - An existing Document that currently resides in the
index for the given resource, or null if none was previously presentsourceFile - The sourceFile that is being indexed
Exception - This method should throw and Exception with
appropriate error message if an error occurs.
|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||