public static final class FSImageFormatPBSnapshot.Saver extends Object
Constructor and Description |
---|
FSImageFormatPBSnapshot.Saver(FSImageFormatProtobuf.Saver parent,
FsImageProto.FileSummary.Builder headers,
org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext context,
org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn) |
Modifier and Type | Method and Description |
---|---|
void |
serializeINodeReferenceSection(OutputStream out)
This can only be called after serializing both INode_Dir and SnapshotDiff
|
void |
serializeSnapshotDiffSection(OutputStream out)
save all the snapshot diff to fsimage
|
void |
serializeSnapshotSection(OutputStream out)
save all the snapshottable directories and snapshots to fsimage
|
public FSImageFormatPBSnapshot.Saver(FSImageFormatProtobuf.Saver parent, FsImageProto.FileSummary.Builder headers, org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext context, org.apache.hadoop.hdfs.server.namenode.FSNamesystem fsn)
public void serializeSnapshotSection(OutputStream out) throws IOException
IOException
public void serializeINodeReferenceSection(OutputStream out) throws IOException
IOException
public void serializeSnapshotDiffSection(OutputStream out) throws IOException
IOException
Copyright © 2018 Apache Software Foundation. All Rights Reserved.