Class FSEditLogOp.Writer

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FSEditLogOp.Writer
Enclosing class:
FSEditLogOp

public static class FSEditLogOp.Writer extends Object
Class for writing editlog ops
  • Constructor Details

    • Writer

      public Writer(org.apache.hadoop.io.DataOutputBuffer out)
  • Method Details

    • writeOp

      public void writeOp(FSEditLogOp op, int logVersion) throws IOException
      Write an operation to the output stream
      Parameters:
      op - The operation to write
      logVersion - The version of edit log
      Throws:
      IOException - if an error occurs during writing.