DLESE Tools
v1.2

org.dlese.dpc.index.reader
Class WebLogReader

java.lang.Object
  extended byorg.dlese.dpc.index.reader.DocReader
      extended byorg.dlese.dpc.index.reader.WebLogReader

public class WebLogReader
extends DocReader

A DocReader that reads web log entries created by WebLogWriter.

Author:
John Weatherley
See Also:
ResultDoc, WebLogWriter

Field Summary
 
Fields inherited from class org.dlese.dpc.index.reader.DocReader
conf, doc, score
 
Constructor Summary
WebLogReader(Document doc)
          Constructor that may be used programatically to wrap a reader around a Lucene Document created by a DocWriter.
WebLogReader(Document doc, float score, ResultDocConfig conf)
          Constructor that is used by ResultDoc at search time to create a new instance.
 
Method Summary
 String getNotes()
           
 String getReaderType()
          Gets a String describing the reader type.
 String getRemoteHost()
           
 String getRequestDate()
           
 String getRequestUrl()
           
 
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

WebLogReader

public WebLogReader(Document doc,
                    float score,
                    ResultDocConfig conf)
Constructor that is used by ResultDoc at search time to create a new instance.

Parameters:
doc - The Lucene Document that is read.
score - The rank of the Document in a set of results.

WebLogReader

public WebLogReader(Document doc)
Constructor that may be used programatically to wrap a reader around a Lucene Document created by a DocWriter. Sets the score to 0.

Parameters:
doc - A Lucene Document created by a DocWriter.
Method Detail

getRequestDate

public String getRequestDate()

getRequestUrl

public String getRequestUrl()

getNotes

public String getNotes()

getRemoteHost

public String getRemoteHost()

getReaderType

public String getReaderType()
Gets a String describing the 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 implies which getter methods are available.

Specified by:
getReaderType in class DocReader
Returns:
The readerType value.

DLESE Tools
v1.2