public class SnapshotFSImageFormat
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SnapshotFSImageFormat.ReferenceMap |
A reference map for fsimage serialization.
|
| Constructor | Description |
|---|---|
SnapshotFSImageFormat() |
| Modifier and Type | Method | Description |
|---|---|---|
static INode |
loadCreated(byte[] createdNodeName,
INodeDirectory parent) |
Load a node stored in the created list from fsimage.
|
static void |
loadDirectoryDiffList(INodeDirectory dir,
java.io.DataInput in,
FSImageFormat.Loader loader) |
Load the
SnapshotDiff list for the INodeDirectoryWithSnapshot
directory. |
static FileDiffList |
loadFileDiffList(java.io.DataInput in,
FSImageFormat.Loader loader) |
|
static void |
loadSnapshotList(INodeDirectory snapshottableParent,
int numSnapshots,
java.io.DataInput in,
FSImageFormat.Loader loader) |
Load snapshots and snapshotQuota for a Snapshottable directory.
|
static void |
saveDirectoryDiffList(INodeDirectory dir,
java.io.DataOutput out,
SnapshotFSImageFormat.ReferenceMap referenceMap) |
|
static void |
saveFileDiffList(INodeFile file,
java.io.DataOutput out) |
|
static void |
saveSnapshots(INodeDirectory current,
java.io.DataOutput out) |
Save snapshots and snapshot quota for a snapshottable directory.
|
public static void saveSnapshots(INodeDirectory current, java.io.DataOutput out) throws java.io.IOException
current - The directory that the snapshots belongs to.out - The DataOutput to write.java.io.IOExceptionpublic static void saveDirectoryDiffList(INodeDirectory dir, java.io.DataOutput out, SnapshotFSImageFormat.ReferenceMap referenceMap) throws java.io.IOException
java.io.IOExceptionpublic static void saveFileDiffList(INodeFile file, java.io.DataOutput out) throws java.io.IOException
java.io.IOExceptionpublic static FileDiffList loadFileDiffList(java.io.DataInput in, FSImageFormat.Loader loader) throws java.io.IOException
java.io.IOExceptionpublic static INode loadCreated(byte[] createdNodeName, INodeDirectory parent) throws java.io.IOException
createdNodeName - The name of the created node.parent - The directory that the created list belongs to.java.io.IOExceptionpublic static void loadSnapshotList(INodeDirectory snapshottableParent, int numSnapshots, java.io.DataInput in, FSImageFormat.Loader loader) throws java.io.IOException
snapshottableParent - The snapshottable directory for loading.numSnapshots - The number of snapshots that the directory has.loader - The loaderjava.io.IOExceptionpublic static void loadDirectoryDiffList(INodeDirectory dir, java.io.DataInput in, FSImageFormat.Loader loader) throws java.io.IOException
SnapshotDiff list for the INodeDirectoryWithSnapshot
directory.dir - The snapshottable directory for loading.in - The DataInput instance to read.loader - The loaderjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.