public abstract static class FSEditLogOp.Reader
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static FSEditLogOp.Reader |
create(java.io.DataInputStream in,
org.apache.hadoop.hdfs.server.namenode.StreamLimiter limiter,
int logVersion) |
|
abstract FSEditLogOp |
decodeOp() |
Read an opcode from the input stream.
|
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(java.io.DataInputStream in, org.apache.hadoop.hdfs.server.namenode.StreamLimiter limiter, int logVersion)
public void setMaxOpSize(int maxOpSize)
public FSEditLogOp readOp(boolean skipBrokenEdits) throws java.io.IOException
skipBrokenEdits - If true, attempt to skip over damaged parts of
the input stream, rather than throwing an IOExceptionjava.io.IOException - on error. This function should only throw an
exception when skipBrokenEdits is false.public abstract FSEditLogOp decodeOp() throws java.io.IOException
java.io.IOExceptionpublic abstract long scanOp()
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.