Class BinaryEditsVisitor
java.lang.Object
org.apache.hadoop.hdfs.tools.offlineEditsViewer.BinaryEditsVisitor
- All Implemented Interfaces:
OfflineEditsVisitor
BinaryEditsVisitor implements a binary EditsVisitor
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryEditsVisitor(String outputName) Create a processor that writes to a given file -
Method Summary
Modifier and TypeMethodDescriptionvoidFinish the visitorvoidstart(int version) Start the visitor (initialization)voidvisitOp(FSEditLogOp op) Begin visiting an element that encloses another element, such as the beginning of the list of blocks that comprise a file.
-
Constructor Details
-
BinaryEditsVisitor
Create a processor that writes to a given file- Parameters:
outputName- Name of file to write output to- Throws:
IOException
-
-
Method Details
-
start
Start the visitor (initialization)- Specified by:
startin interfaceOfflineEditsVisitor- Parameters:
version- Edit log version- Throws:
IOException
-
close
Finish the visitor- Specified by:
closein interfaceOfflineEditsVisitor- Parameters:
error- If the visitor was closed because of an unrecoverable error in the input stream, this is the exception.- Throws:
IOException
-
visitOp
Description copied from interface:OfflineEditsVisitorBegin visiting an element that encloses another element, such as the beginning of the list of blocks that comprise a file.- Specified by:
visitOpin interfaceOfflineEditsVisitor- Parameters:
op- Token being visited- Throws:
IOException
-