@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 toIOException
public void start(int version) throws IOException
start
in interface OfflineEditsVisitor
version
- Edit log versionIOException
public void close(Throwable error) throws IOException
close
in interface OfflineEditsVisitor
error
- If the visitor was closed because of an
unrecoverable error in the input stream, this
is the exception.IOException
public void visitOp(FSEditLogOp op) throws IOException
OfflineEditsVisitor
visitOp
in interface OfflineEditsVisitor
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.