|
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.reader.DocReader
org.dlese.dpc.index.reader.FileIndexingServiceDocReader
org.dlese.dpc.index.reader.ErrorDocReader
Provides getter methods to read the data fileds Lucene Document that was created by a ErrorFileIndexingWriter. The getter methods can
then be accessed from (Struts) beans that need the data.
ErrorFileIndexingWriter,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.dlese.dpc.index.reader.DocReader |
|---|
conf, doc, score |
| Constructor Summary | |
|---|---|
ErrorDocReader(Document doc)
Constructor that may be used programatically to wrap a reader around a Lucene Document created by a FileIndexingServiceWriter. |
|
ErrorDocReader(Document doc,
float score,
ResultDocConfig conf)
Constructor that is used by ResultDoc at search
time to create a new instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.dlese.dpc.index.reader.FileIndexingServiceDocReader |
|---|
fileExists, getDateStamp, getDeleted, getDocDir, getDocsource, getDocsourceEncoded, getDoctype, getFileExists, getFileName, getFullContent, getLastModified, getLastModifiedString, getSourceFile, isDeleted, prtln, prtlnErr, setDebug |
| Methods inherited from class org.dlese.dpc.index.reader.DocReader |
|---|
getDocument, getIndex, getQuery, getScore, setDoc |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ErrorDocReader(Document doc,
float score,
ResultDocConfig conf)
ResultDoc at search
time to create a new instance.
doc - The Lucene Document that is read.score - The rank of the Document in a set of results.public ErrorDocReader(Document doc)
Document created by a FileIndexingServiceWriter.
doc - A Lucene Document created by
a ItemFileIndexingWriter.| Method Detail |
public String getReaderType()
getReaderType in class DocReaderpublic String getErrorMsg()
public String getExceptionName()
|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||