public static class FSEditLogOp.Reader extends Object
Constructor and Description |
---|
FSEditLogOp.Reader(DataInputStream in,
org.apache.hadoop.hdfs.server.namenode.StreamLimiter limiter,
int logVersion)
Construct the reader
|
Modifier and Type | Method and Description |
---|---|
FSEditLogOp |
readOp(boolean skipBrokenEdits)
Read an operation from the input stream.
|
void |
setMaxOpSize(int maxOpSize) |
public FSEditLogOp.Reader(DataInputStream in, org.apache.hadoop.hdfs.server.namenode.StreamLimiter limiter, int logVersion)
in
- The stream to read from.logVersion
- The version of the data coming from the stream.public void setMaxOpSize(int maxOpSize)
public FSEditLogOp readOp(boolean skipBrokenEdits) throws IOException
skipBrokenEdits
- If true, attempt to skip over damaged parts of
the input stream, rather than throwing an IOExceptionIOException
- on error. This function should only throw an
exception when skipBrokenEdits is false.Copyright © 2013 Apache Software Foundation. All rights reserved.