Uses of Class
org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot
Packages that use Snapshot
Package
Description
-
Uses of Snapshot in org.apache.hadoop.hdfs.server.namenode
Methods in org.apache.hadoop.hdfs.server.namenode that return SnapshotModifier and TypeMethodDescriptionINodeDirectory.addSnapshot(SnapshotManager snapshotManager, String name, LeaseManager leaseManager, long mtime) Add a snapshot.FSImageFormat.Loader.getSnapshot(DataInput in) INodeDirectory.getSnapshot(byte[] snapshotName) INodeDirectory.removeSnapshot(INode.ReclaimContext reclaimContext, String snapshotName, long mtime, SnapshotManager snapshotManager) Delete a snapshot.Methods in org.apache.hadoop.hdfs.server.namenode with parameters of type SnapshotModifier and TypeMethodDescriptionvoidINode.ReclaimContext.setSnapshotToBeDeleted(Snapshot snapshot) Set the snapshot to be deleted forFSEditLogOpCodes.OP_DELETE_SNAPSHOT. -
Uses of Snapshot in org.apache.hadoop.hdfs.server.namenode.snapshot
Fields in org.apache.hadoop.hdfs.server.namenode.snapshot with type parameters of type SnapshotModifier and TypeFieldDescriptionstatic final Comparator<Snapshot>Snapshot.ID_COMPARATORCompare snapshot with IDs, where null indicates the current status thus is greater than any non-null snapshot.Methods in org.apache.hadoop.hdfs.server.namenode.snapshot that return SnapshotModifier and TypeMethodDescriptionDirectorySnapshottableFeature.addSnapshot(INodeDirectory snapshotRoot, SnapshotManager snapshotManager, String name, LeaseManager leaseManager, long now) Add a snapshot.DirectorySnapshottableFeature.getSnapshot(byte[] snapshotName) DirectorySnapshottableFeature.getSnapshotById(int sid) DirectorySnapshottableFeature.getSnapshotByName(INodeDirectory snapshotRoot, String snapshotName) Find the snapshot matching the given name.DirectorySnapshottableFeature.removeSnapshot(INode.ReclaimContext reclaimContext, INodeDirectory snapshotRoot, String snapshotName, long now, SnapshotManager snapshotManager) Remove the snapshot with the given name fromDirectorySnapshottableFeature.snapshotsByNames, and delete all the corresponding DirectoryDiff.Methods in org.apache.hadoop.hdfs.server.namenode.snapshot that return types with arguments of type SnapshotModifier and TypeMethodDescriptionDirectorySnapshottableFeature.getSnapshotList()SnapshotManager.read(DataInput in, FSImageFormat.Loader loader) Read values ofSnapshotManager.snapshotCounter,SnapshotManager.numSnapshots, and all snapshots from the DataInputMethods in org.apache.hadoop.hdfs.server.namenode.snapshot with parameters of type SnapshotModifier and TypeMethodDescriptionstatic StringSnapshot.generateDeletedSnapshotName(Snapshot s) static intSnapshot.getSnapshotId(Snapshot s) static SnapshotInfo.Bean