Class ErrorDocReader

All Implemented Interfaces:
Serializable

public class ErrorDocReader extends FileIndexingServiceDocReader
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:
  • 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 Lucene Document created by a FileIndexingServiceWriter.
      Parameters:
      doc - A Lucene Document created by a ItemFileIndexingWriter.
  • Method Details

    • init

      public void init()
      Init method does nothing.
      Specified by:
      init in class DocReader
    • getReaderType

      public String 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:
      getReaderType in class DocReader
      Returns:
      The String 'ErrorDocReader'.
    • getErrorMsg

      public String getErrorMsg()
      Gets the error message.
      Returns:
      The error message.
    • getExceptionName

      public String getExceptionName()
      Gets the name of the Exception that was thrown to when the error occured.
      Returns:
      The Exception name.
    • getStackTrace

      public String getStackTrace()
      Gets the stack trace that was indicated to when the error occured.
      Returns:
      The stack trace as a flat String.
    • getErrorDocType

      public String getErrorDocType()
      Gets the errorDocType attribute, which defaults to 'generic'.
      Returns:
      The errorDocType value
    • getDuplicateId

      public String getDuplicateId()
      Gets the duplicateId attribute of the ErrorDocReader object
      Returns:
      The duplicateId value
    • getDuplicateIdSourceFilePath

      public String getDuplicateIdSourceFilePath()
      Gets the duplicateIdSourceFilePath attribute of the ErrorDocReader object
      Returns:
      The duplicateIdSourceFilePath value
    • getDuplicateIdSourceFile

      public File getDuplicateIdSourceFile()
      Gets the duplicateIdSourceFile attribute of the ErrorDocReader object
      Returns:
      The duplicateIdSourceFile value