|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.index.writer.WebLogEntryWriter
public class WebLogEntryWriter
Writes a Lucene Document
for data in a single web
log entry. Uderstands a log file in the format of the 'Combined Log Format' extension
of the Common Log Format (CLF) with additional extensions added by the DLESE query
logger. See the
Apache logs docs for info about the Combined Log Format, ClfLogger
and DDSQueryAction
method logQuery() for info about the DLESE query log extensions.
Constructor Summary | |
---|---|
WebLogEntryWriter()
Constructor for the WebLogEntryWriter object |
Method Summary | |
---|---|
protected void |
addToAdminDefaultField(String value,
StringBuffer defaultFieldStringBuffer)
Adds the given String to a text field referenced in the index by the field name 'default'. |
org.apache.lucene.document.Document |
createLogEntryDoc(String logEntry)
Create a log entry Document, storing and indexing the given notes. |
String |
getDocType()
Gets doctype, which is "weblog". |
String |
getReaderClass()
Gets the name of the concrete DocReader class that
is used to read this type of Document , which is
"WebLogEntryReader". |
protected void |
prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true. |
protected void |
prtlnErr(String s)
Output a line of text to error out, with datestamp. |
static String |
removeHexChars(String string)
Unencodes chars that have been encoded into hex. |
static void |
setDebug(boolean db)
Sets the debug attribute of the FileIndexingServiceWriter object |
static String |
tokenizeString(String string)
Tokenizes a String by removing all the non-letter/number chars. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebLogEntryWriter()
Method Detail |
---|
public String getDocType()
getDocType
in interface DocWriter
public String getReaderClass()
DocReader
class that
is used to read this type of Document
, which is
"WebLogEntryReader".
getReaderClass
in interface DocWriter
public final org.apache.lucene.document.Document createLogEntryDoc(String logEntry)
logEntry
- A single logEntry line
protected final void addToAdminDefaultField(String value, StringBuffer defaultFieldStringBuffer)
value
- A text string to be added to the indexed field named
'default.'defaultFieldStringBuffer
- The feature to be added to the ToDefaultField
attributepublic static final String tokenizeString(String string)
string
- A String
public static final String removeHexChars(String string)
string
- A String
protected final void prtlnErr(String s)
s
- The text that will be output to error out.protected final void prtln(String s)
s
- The String that will be output.public static final void setDebug(boolean db)
db
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |