AuditLogDirectParser, AuditLogHiveTableParserpublic interface AuditCommandParser
Text input at a time and return an AuditReplayCommand
which represents the input text. Each input line should produce exactly one
command.| Modifier and Type | Method | Description |
|---|---|---|
void |
initialize(org.apache.hadoop.conf.Configuration conf) |
Initialize this parser with the given configuration.
|
org.apache.hadoop.tools.dynamometer.workloadgenerator.audit.AuditReplayCommand |
parse(org.apache.hadoop.io.Text inputLine,
java.util.function.Function<java.lang.Long,java.lang.Long> relativeToAbsolute) |
Convert a line of input into an
AuditReplayCommand. |
void initialize(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
parse(Text, Function).conf - The Configuration to be used to set up this parser.java.io.IOException - if error on initializing a parser.org.apache.hadoop.tools.dynamometer.workloadgenerator.audit.AuditReplayCommand parse(org.apache.hadoop.io.Text inputLine,
java.util.function.Function<java.lang.Long,java.lang.Long> relativeToAbsolute)
throws java.io.IOException
AuditReplayCommand. Since
AuditReplayCommands store absolute timestamps, relativeToAbsolute
can be used to convert relative timestamps (i.e., milliseconds elapsed
between the start of the audit log and this command) into absolute
timestamps.inputLine - Single input line to convert.relativeToAbsolute - Function converting relative timestamps
(in milliseconds) to absolute timestamps
(in milliseconds).java.io.IOException - if error on parsing.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.