OfflineEditsVisitor@Private @Unstable public class BinaryEditsVisitor extends java.lang.Object implements OfflineEditsVisitor
| Constructor | Description |
|---|---|
BinaryEditsVisitor(java.lang.String outputName) |
Create a processor that writes to a given file
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close(java.lang.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(java.lang.String outputName)
throws java.io.IOException
outputName - Name of file to write output tojava.io.IOExceptionpublic void start(int version)
throws java.io.IOException
start in interface OfflineEditsVisitorversion - Edit log versionjava.io.IOExceptionpublic void close(java.lang.Throwable error)
throws java.io.IOException
close in interface OfflineEditsVisitorerror - If the visitor was closed because of an
unrecoverable error in the input stream, this
is the exception.java.io.IOExceptionpublic void visitOp(FSEditLogOp op) throws java.io.IOException
OfflineEditsVisitorvisitOp in interface OfflineEditsVisitorop - Token being visitedjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.