org.apache.hadoop.hdfs.server.namenode
Class FSEditLogOp.Reader
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FSEditLogOp.Reader
- Enclosing class:
- org.apache.hadoop.hdfs.server.namenode.FSEditLogOp
public static class FSEditLogOp.Reader
- extends Object
Class for reading editlog ops from a stream
|
Method Summary |
org.apache.hadoop.hdfs.server.namenode.FSEditLogOp |
readOp()
Read an operation from the input stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSEditLogOp.Reader
public FSEditLogOp.Reader(DataInputStream in,
int logVersion)
- Construct the reader
- Parameters:
in - The stream to read from.logVersion - The version of the data coming from the stream.
readOp
public org.apache.hadoop.hdfs.server.namenode.FSEditLogOp readOp()
throws IOException
- Read an operation from the input stream.
Note that the objects returned from this method may be re-used by future
calls to the same method.
- Returns:
- the operation read from the stream, or null at the end of the file
- Throws:
IOException - on error.
Copyright © 2013 Apache Software Foundation. All Rights Reserved.