Interface OfflineEditsVisitor
- All Known Implementing Classes:
BinaryEditsVisitor,StatisticsEditsVisitor,XmlEditsVisitor
@Private
@Unstable
public interface OfflineEditsVisitor
An implementation of OfflineEditsVisitor can traverse the structure of an
Hadoop edits log and respond to each of the structures within the file.
-
Method Summary
Modifier and TypeMethodDescriptionvoidFinish visiting the edits log structure.voidstart(int version) Begin visiting the edits log structure.voidvisitOp(FSEditLogOp op) Begin visiting an element that encloses another element, such as the beginning of the list of blocks that comprise a file.
-
Method Details
-
start
Begin visiting the edits log structure. Opportunity to perform any initialization necessary for the implementing visitor.- Parameters:
version- Edit log version- Throws:
IOException
-
close
Finish visiting the edits log structure. Opportunity to perform any clean up necessary for the implementing visitor.- Parameters:
error- If the visitor was closed because of an unrecoverable error in the input stream, this is the exception.- Throws:
IOException
-
visitOp
Begin visiting an element that encloses another element, such as the beginning of the list of blocks that comprise a file.- Parameters:
op- Token being visited- Throws:
IOException
-