Class FSImageFormatPBSnapshot.Loader

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.snapshot.FSImageFormatPBSnapshot.Loader
Enclosing class:
FSImageFormatPBSnapshot

public static final class FSImageFormatPBSnapshot.Loader extends Object
Loading snapshot related information from protobuf based FSImage
  • Constructor Details

  • Method Details

    • loadINodeReferenceSection

      public void loadINodeReferenceSection(InputStream in) throws IOException
      The sequence of the ref node in refList must be strictly the same with the sequence in fsimage
      Throws:
      IOException
    • loadSnapshotSection

      public void loadSnapshotSection(InputStream in) throws IOException
      Load the snapshots section from fsimage. Also add snapshottable feature to snapshottable directories.
      Throws:
      IOException
    • loadSnapshotDiffSection

      public void loadSnapshotDiffSection(InputStream in) throws IOException
      Load the snapshot diff section from fsimage.
      Throws:
      IOException