public abstract static class FSEditLogOp.Reader extends Object
Modifier and Type | Method and Description |
---|---|
static FSEditLogOp.Reader |
create(DataInputStream in,
org.apache.hadoop.hdfs.server.namenode.StreamLimiter limiter,
int logVersion) |
abstract org.apache.hadoop.hdfs.server.namenode.FSEditLogOp |
decodeOp()
Read an opcode from the input stream.
|
org.apache.hadoop.hdfs.server.namenode.FSEditLogOp |
readOp(boolean skipBrokenEdits)
Read an operation from the input stream.
|
abstract long |
scanOp()
Similar to decodeOp(), but we only retrieve the transaction ID of the
Op rather than reading it.
|
void |
setMaxOpSize(int maxOpSize) |
public static FSEditLogOp.Reader create(DataInputStream in, org.apache.hadoop.hdfs.server.namenode.StreamLimiter limiter, int logVersion)
public void setMaxOpSize(int maxOpSize)
public org.apache.hadoop.hdfs.server.namenode.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.public abstract org.apache.hadoop.hdfs.server.namenode.FSEditLogOp decodeOp() throws IOException
IOException
public abstract long scanOp() throws IOException
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.