DLESE Tools
v1.6.0

org.dlese.dpc.index.reader
Class ErrorDocReader

java.lang.Object
  extended by org.dlese.dpc.index.reader.DocReader
      extended by org.dlese.dpc.index.reader.FileIndexingServiceDocReader
          extended by org.dlese.dpc.index.reader.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:
ErrorFileIndexingWriter, Serialized Form

Field Summary
 
Fields inherited from class org.dlese.dpc.index.reader.DocReader
conf, doc, resultDoc, score
 
Constructor Summary
ErrorDocReader()
          Constructor for the ErrorDocReader object
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.
 
Method Summary
 String getDuplicateId()
          Gets the duplicateId attribute of the ErrorDocReader object
 File getDuplicateIdSourceFile()
          Gets the duplicateIdSourceFile attribute of the ErrorDocReader object
 String getDuplicateIdSourceFilePath()
          Gets the duplicateIdSourceFilePath attribute of the ErrorDocReader object
 String getErrorDocType()
          Gets the errorDocType attribute, which defaults to 'generic'.
 String getErrorMsg()
          Gets the error message.
 String getExceptionName()
          Gets the name of the Exception that was thrown to when the error occured.
 String getReaderType()
          Gets the String 'ErrorDocReader,' which is the key that describes this reader type.
 String getStackTrace()
          Gets the stack trace that was indicated to when the error occured.
 void init()
          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, setDebug
 
Methods inherited from class org.dlese.dpc.index.reader.DocReader
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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

DLESE Tools
v1.6.0