public interface LogFormat
Modifier and Type | Method and Description |
---|---|
FormatAnalyzer.FormatAnalysis |
analyzeFormat(Reader input)
Creates the analysis object based on the provided input.
|
DataFormat.DataParser |
createParser(ParsingOptions options,
CharsetEncoding charEncoding,
String newline) |
String |
getFormatPattern()
Get the value used for the log format pattern
|
SupportedLogType |
getLogType()
Get the SupportedLogType of this format.
|
RecordTokenType |
getType()
Gets the record type associated with the format.
|
boolean |
isSplittable()
Indicates if the format supports parsing of subsections
of a file.
|
LogFormat |
setAnalysis(FormatAnalyzer.FormatAnalysis analysis)
Sets the analysis object to use to determine meta-data.
|
void |
setFormatPattern(String formatPattern)
Set the value used for the log format pattern
|
SupportedLogType getLogType()
RecordTokenType getType()
For many formats, this may be derived from a schema object describing the format layout.
String getFormatPattern()
void setFormatPattern(String formatPattern)
formatPattern
- the value to use as the format patternboolean isSplittable()
A format should only return true
if it can,
at least in some situations, support this sort of parsing.
If a format requires reading the entire file, it
must return false
.
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.
true
if the format supports parsing
only a portion of the file, false
otherwiseFormatAnalyzer.FormatAnalysis analyzeFormat(Reader input) throws IOException, ParseException
input
- the input source to analyzeParseException
IOException
LogFormat setAnalysis(FormatAnalyzer.FormatAnalysis analysis)
analysis
- the analysis objectDataFormat.DataParser createParser(ParsingOptions options, CharsetEncoding charEncoding, String newline)
Copyright © 2020 Actian Corporation. All rights reserved.