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 void |
loadDirectoryDiffList(INodeDirectory dir,
DataInput in,
FSImageFormat.Loader loader)
Load the
SnapshotDiff list for the INodeDirectoryWithSnapshot
directory. |
static FileWithSnapshot.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.
|
static void |
saveDirectoryDiffList(INodeDirectory dir,
DataOutput out,
SnapshotFSImageFormat.ReferenceMap referenceMap) |
static void |
saveFileDiffList(org.apache.hadoop.hdfs.server.namenode.INodeFile file,
DataOutput out) |
static void |
saveSnapshots(org.apache.hadoop.hdfs.server.namenode.snapshot.INodeDirectorySnapshottable current,
DataOutput out)
Save snapshots and snapshot quota for a snapshottable directory.
|
public SnapshotFSImageFormat()
public static void saveSnapshots(org.apache.hadoop.hdfs.server.namenode.snapshot.INodeDirectorySnapshottable current, DataOutput out) throws IOException
current
- The directory that the snapshots belongs to.out
- The DataOutput
to write.IOException
public static void saveDirectoryDiffList(INodeDirectory dir, DataOutput out, SnapshotFSImageFormat.ReferenceMap referenceMap) throws IOException
IOException
public static void saveFileDiffList(org.apache.hadoop.hdfs.server.namenode.INodeFile file, DataOutput out) throws IOException
IOException
public static FileWithSnapshot.FileDiffList loadFileDiffList(DataInput in, FSImageFormat.Loader loader) throws IOException
IOException
public 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.in
- The DataInput
instance to read.loader
- The FSImageFormat.Loader
instance that this loading procedure is
using.IOException
public 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 FSImageFormat.Loader
instance that this loading procedure is
using.IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.