public class SnapshotFSImageFormat extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshotFSImageFormat.ReferenceMap
A reference map for fsimage serialization.
|
| Constructor and Description |
|---|
SnapshotFSImageFormat() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hdfs.server.namenode.INode |
loadCreated(byte[] createdNodeName,
INodeDirectory parent)
Load a node stored in the created list from fsimage.
|
static void |
loadDirectoryDiffList(INodeDirectory dir,
DataInput in,
FSImageFormat.Loader loader)
Load the
SnapshotDiff list for the INodeDirectoryWithSnapshot
directory. |
static FileDiffList |
loadFileDiffList(DataInput in,
FSImageFormat.Loader loader) |
static void |
loadSnapshotList(org.apache.hadoop.hdfs.server.namenode.snapshot.INodeDirectorySnapshottable snapshottableParent,
int numSnapshots,
DataInput in,
FSImageFormat.Loader loader)
Load snapshots and snapshotQuota for a Snapshottable directory.
|
public SnapshotFSImageFormat()
public static FileDiffList loadFileDiffList(DataInput in, FSImageFormat.Loader loader) throws IOException
IOExceptionpublic static org.apache.hadoop.hdfs.server.namenode.INode loadCreated(byte[] createdNodeName, INodeDirectory parent) throws IOException
createdNodeName - The name of the created node.parent - The directory that the created list belongs to.IOExceptionpublic static void loadSnapshotList(org.apache.hadoop.hdfs.server.namenode.snapshot.INodeDirectorySnapshottable snapshottableParent, int numSnapshots, DataInput in, FSImageFormat.Loader loader) throws IOException
snapshottableParent - The snapshottable directory for loading.numSnapshots - The number of snapshots that the directory has.loader - The loaderIOExceptionpublic static void loadDirectoryDiffList(INodeDirectory dir, DataInput in, FSImageFormat.Loader loader) throws IOException
SnapshotDiff list for the INodeDirectoryWithSnapshot
directory.dir - The snapshottable directory for loading.in - The DataInput instance to read.loader - The loaderIOExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.