- java.lang.Object
- 
- com.pervasive.datarush.operators.io.textfile.AbstractRegexLogFormat
- 
- com.pervasive.datarush.operators.io.textfile.CLFLogFormat
 
 
- 
- All Implemented Interfaces:
- LogFormat
 
 public class CLFLogFormat extends AbstractRegexLogFormat Describes the format of a web server log in NCSA Common log format.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.pervasive.datarush.operators.io.textfile.AbstractRegexLogFormatAbstractRegexLogFormat.RegexParser
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected RecordTextSchema<?>schema- 
Fields inherited from class com.pervasive.datarush.operators.io.textfile.AbstractRegexLogFormatformatPattern, logType
 
- 
 - 
Constructor SummaryConstructors Constructor Description CLFLogFormat()Create a log format for accessing common log format data.CLFLogFormat(String formatPattern)Create a log format for accessing common log format data.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormat.DataParsercreateParser(ParsingOptions options, CharsetEncoding charEncoding, String newline)RecordTextSchema<?>getSchema()Gets the record schema of the source.RecordTokenTypegetType()Gets the record type associated with the format.booleanisSplittable()Indicates if the format supports parsing of subsections of a file.protected voidrefreshSchema()Refresh and recalculate the schema.- 
Methods inherited from class com.pervasive.datarush.operators.io.textfile.AbstractRegexLogFormatanalyzeFormat, getFormatPattern, getLogType, setAnalysis, setFormatPattern
 
- 
 
- 
- 
- 
Field Detail- 
schemaprotected RecordTextSchema<?> schema 
 
- 
 - 
Constructor Detail- 
CLFLogFormatpublic CLFLogFormat() Create a log format for accessing common log format data.
 - 
CLFLogFormatpublic CLFLogFormat(String formatPattern) Create a log format for accessing common log format data.- Parameters:
- formatPattern-
 
 
- 
 - 
Method Detail- 
getTypepublic RecordTokenType getType() Description copied from interface:LogFormatGets the record type associated with the format. Records produced by the associated parser or consumed by the associated formatter will be of this type.For many formats, this may be derived from a schema object describing the format layout. - Returns:
- the format's record type
 
 - 
getSchemapublic RecordTextSchema<?> getSchema() Description copied from class:AbstractRegexLogFormatGets the record schema of the source.- Specified by:
- getSchemain class- AbstractRegexLogFormat
- Returns:
- the record schema of the source
 
 - 
refreshSchemaprotected void refreshSchema() Description copied from class:AbstractRegexLogFormatRefresh and recalculate the schema. This is usually done after changing a setting.- Specified by:
- refreshSchemain class- AbstractRegexLogFormat
 
 - 
isSplittablepublic boolean isSplittable() Description copied from interface:LogFormatIndicates if the format supports parsing of subsections of a file.A format should only return trueif it can, at least in some situations, support this sort of parsing. If a format requires reading the entire file, it must returnfalse.If a format is not splittable, a file in the format cannot be parsed in parallel; however, individual files can still be parsed independently in parallel, as when reading the contents of a directory or using a file globbing pattern. - Specified by:
- isSplittablein interface- LogFormat
- Overrides:
- isSplittablein class- AbstractRegexLogFormat
- Returns:
- trueif the format supports parsing only a portion of the file,- falseotherwise
 
 - 
createParserpublic DataFormat.DataParser createParser(ParsingOptions options, CharsetEncoding charEncoding, String newline) 
 
- 
 
-