Package org.dlese.dpc.index.reader
Class ErrorDocReader
java.lang.Object
org.dlese.dpc.index.reader.DocReader
org.dlese.dpc.index.reader.FileIndexingServiceDocReader
org.dlese.dpc.index.reader.ErrorDocReader
- All Implemented Interfaces:
Serializable
A bean for accessing the data stored in a Lucene
Document that was
indexed by a ErrorFileIndexingWriter, which occurs when there is an
error while indexing a given file.- Author:
- John Weatherley
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the ErrorDocReader objectErrorDocReader(org.apache.lucene.document.Document doc) Constructor that may be used programatically to wrap a reader around a LuceneDocumentcreated by aFileIndexingServiceWriter. -
Method Summary
Modifier and TypeMethodDescriptionGets the duplicateId attribute of the ErrorDocReader objectGets the duplicateIdSourceFile attribute of the ErrorDocReader objectGets the duplicateIdSourceFilePath attribute of the ErrorDocReader objectGets the errorDocType attribute, which defaults to 'generic'.Gets the error message.Gets the name of the Exception that was thrown to when the error occured.Gets the String 'ErrorDocReader,' which is the key that describes this reader type.Gets the stack trace that was indicated to when the error occured.voidinit()Init method does nothing.Methods inherited from class org.dlese.dpc.index.reader.FileIndexingServiceDocReader
fileExists, getDateFileWasIndexed, getDateFileWasIndexedString, getDateStamp, getDeleted, getDocDir, getDocsource, getDocsourceEncoded, getDoctype, getFile, getFileExists, getFileName, getFullContent, getFullContentEncodedAs, getLastModified, getLastModifiedAsUTC, getLastModifiedString, isDeleted, prtln, prtlnErr, setDebugMethods inherited from class org.dlese.dpc.index.reader.DocReader
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
-
Constructor Details
-
ErrorDocReader
public ErrorDocReader()Constructor for the ErrorDocReader object -
ErrorDocReader
public ErrorDocReader(org.apache.lucene.document.Document doc) Constructor that may be used programatically to wrap a reader around a LuceneDocumentcreated by aFileIndexingServiceWriter.- Parameters:
doc- A LuceneDocumentcreated by aItemFileIndexingWriter.
-
-
Method Details
-
init
public void init()Init method does nothing. -
getReaderType
Gets the String 'ErrorDocReader,' which is the key that describes this reader type. This may be used in (Struts) beans to determine which type of reader is available for a given search result and thus what data is available for display in the UI. The reader type determines which getter methods are available.- Specified by:
getReaderTypein classDocReader- Returns:
- The String 'ErrorDocReader'.
-
getErrorMsg
Gets the error message.- Returns:
- The error message.
-
getExceptionName
Gets the name of the Exception that was thrown to when the error occured.- Returns:
- The Exception name.
-
getStackTrace
Gets the stack trace that was indicated to when the error occured.- Returns:
- The stack trace as a flat String.
-
getErrorDocType
Gets the errorDocType attribute, which defaults to 'generic'.- Returns:
- The errorDocType value
-
getDuplicateId
Gets the duplicateId attribute of the ErrorDocReader object- Returns:
- The duplicateId value
-
getDuplicateIdSourceFilePath
Gets the duplicateIdSourceFilePath attribute of the ErrorDocReader object- Returns:
- The duplicateIdSourceFilePath value
-
getDuplicateIdSourceFile
Gets the duplicateIdSourceFile attribute of the ErrorDocReader object- Returns:
- The duplicateIdSourceFile value
-