org.apache.hadoop.hdfs.server.namenode.snapshot
Class FSImageFormatPBSnapshot.Loader

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

public static final class FSImageFormatPBSnapshot.Loader
extends Object

Loading snapshot related information from protobuf based FSImage


Constructor Summary
FSImageFormatPBSnapshot.Loader(org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn, FSImageFormatProtobuf.Loader parent)
           
 
Method Summary
 void loadINodeReferenceSection(InputStream in)
          The sequence of the ref node in refList must be strictly the same with the sequence in fsimage
 void loadSnapshotDiffSection(InputStream in)
          Load the snapshot diff section from fsimage.
 void loadSnapshotSection(InputStream in)
          Load the snapshots section from fsimage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSImageFormatPBSnapshot.Loader

public FSImageFormatPBSnapshot.Loader(org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn,
                                      FSImageFormatProtobuf.Loader parent)
Method Detail

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.