@InterfaceAudience.Private @InterfaceStability.Unstable public class BinaryEditsVisitor extends Object implements OfflineEditsVisitor
| Constructor and Description |
|---|
BinaryEditsVisitor(String outputName)
Create a processor that writes to a given file
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(Throwable error)
Finish the visitor
|
void |
start(int version)
Start the visitor (initialization)
|
void |
visitOp(FSEditLogOp op)
Begin visiting an element that encloses another element, such as
the beginning of the list of blocks that comprise a file.
|
public BinaryEditsVisitor(String outputName) throws IOException
filename - Name of file to write output toIOExceptionpublic void start(int version)
throws IOException
start in interface OfflineEditsVisitorversion - Edit log versionIOExceptionpublic void close(Throwable error) throws IOException
close in interface OfflineEditsVisitorerror - If the visitor was closed because of an
unrecoverable error in the input stream, this
is the exception.IOExceptionpublic void visitOp(FSEditLogOp op) throws IOException
OfflineEditsVisitorvisitOp in interface OfflineEditsVisitorIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.