|
DLESE Tools v1.6.0 |
||||||||
| 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
public class 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| Constructor Summary | |
|---|---|
DleseAnnoFileIndexingServiceWriter()
Create a DleseAnnoFileIndexingServiceWriter |
|
| Method Summary | |
|---|---|
protected String[] |
_getIds()
Gets the id of this annotation |
protected void |
addFields(org.apache.lucene.document.Document newDoc,
org.apache.lucene.document.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. |
protected void |
finalize()
Perform finalization... |
String |
getDescription()
Return a description for the document being indexed, or null if none applies. |
String |
getDocType()
Gets the docType attribute of the DleseAnnoFileIndexingServiceWriter object |
static long |
getNumInstances()
Gets the numInstances attribute of the DleseAnnoFileIndexingServiceWriter class |
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". |
String |
getTitle()
Return a title for the document being indexed, or null if none applies. |
String[] |
getUrls()
Return the URL(s) to the resource being indexed, or null if none apply. |
protected String |
getValidationReport()
Gets a report detailing any errors found in the validation of the data, or null if no error was found. |
protected Date |
getWhatsNewDate()
Returns the the first available of item/statusOf@date, service/date@modified or service/date@created. |
protected String |
getWhatsNewType()
Returns 'annocomplete,' 'annoinprogress,' 'drcannocomplete,' or 'drcannoinprogress'. |
boolean |
indexFullContentInDefaultAndStems()
Default and stems fields handled here, so do not index full content. |
void |
init(File source,
org.apache.lucene.document.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, getBoundingBox, getCollections, getDeletedDoc, getDocGroup, getDom4jDoc, getFieldContent, getFieldContent, getFieldName, getIds, getIndex, getMyAnnoResultDocs, getMyCollectionDoc, getOaiModtime, getPrimaryId, getRecordDataService, getRelatedIds, getRelatedIdsMap, getRelatedUrls, getRelatedUrlsMap, getTermStringFromStringArray, getXmlIndexer, getXmlIndexerFieldsConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DleseAnnoFileIndexingServiceWriter()
| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowable - If errorpublic static long getNumInstances()
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 FileIndexingServiceWriter
public void init(File source,
org.apache.lucene.document.Document existingDoc)
throws Exception
init in class XMLFileIndexingWritersource - 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 FileIndexingServiceWriterprotected String[] _getIds()
_getIds in class XMLFileIndexingWriterpublic String[] getUrls()
XMLFileIndexingWriter
getUrls in class XMLFileIndexingWriter
public String getTitle()
throws Exception
XMLFileIndexingWriter
getTitle in class XMLFileIndexingWriterException - This method should throw and Exception with appropriate error message if an error
occurs.
public String getDescription()
throws Exception
XMLFileIndexingWriter
getDescription in class XMLFileIndexingWriterException - This method should throw and Exception with appropriate error message if an error
occurs.
protected Date getWhatsNewDate()
throws Exception
getWhatsNewDate in class XMLFileIndexingWriterException - This method should throw and Exception with appropriate error message if an error
occurs.
protected String getWhatsNewType()
throws Exception
getWhatsNewType in class XMLFileIndexingWriterException - If errorpublic boolean indexFullContentInDefaultAndStems()
indexFullContentInDefaultAndStems in class XMLFileIndexingWriter
protected void addFields(org.apache.lucene.document.Document newDoc,
org.apache.lucene.document.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.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||