org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool@Private
@Unstable
public class OfflineEditsViewer
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class | Description |
|---|---|---|
static class |
OfflineEditsViewer.Flags |
| Constructor | Description |
|---|---|
OfflineEditsViewer() |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.commons.cli.Options |
buildOptions() |
Build command-line options and descriptions
|
int |
go(java.lang.String inputFileName,
java.lang.String outputFileName,
java.lang.String processor,
OfflineEditsViewer.Flags flags,
OfflineEditsVisitor visitor) |
Process an edit log using the chosen processor or visitor.
|
static void |
main(java.lang.String[] argv) |
main() runs the offline edits viewer using ToolRunner
|
int |
run(java.lang.String[] argv) |
Main entry point for ToolRunner (see ToolRunner docs)
|
public static org.apache.commons.cli.Options buildOptions()
public int go(java.lang.String inputFileName,
java.lang.String outputFileName,
java.lang.String processor,
OfflineEditsViewer.Flags flags,
OfflineEditsVisitor visitor)
inputFileName - The file to processoutputFileName - The output file nameprocessor - If visitor is null, the processor to usevisitor - If non-null, the visitor to use.public int run(java.lang.String[] argv)
throws java.lang.Exception
run in interface org.apache.hadoop.util.Toolargv - The parameters passed to this program.java.lang.Exceptionpublic static void main(java.lang.String[] argv)
throws java.lang.Exception
argv - Command line parameters.java.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.