| Package | Description | 
|---|---|
| org.apache.hadoop.hdfs.server.namenode | |
| org.apache.hadoop.hdfs.server.namenode.snapshot | 
| Modifier and Type | Method and Description | 
|---|---|
| INodeDirectory | INodeReference. asDirectory() | 
| INodeDirectory | INodeDirectory. asDirectory() | 
| static INodeDirectory | FSImageFormatPBINode.Loader. loadINodeDirectory(FsImageProto.INodeSection.INode n,
                  FSImageFormatProtobuf.LoaderContext state) | 
| static INodeDirectory | INodeDirectory. valueOf(org.apache.hadoop.hdfs.server.namenode.INode inode,
       Object path)Cast INode to INodeDirectory. | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<INodeDirectory,QuotaCounts> | INode.QuotaDelta. getQuotaDirMap() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | INode.QuotaDelta. addQuotaDirUpdate(INodeDirectory dir,
                 QuotaCounts update) | 
| boolean | INodesInPath. isDescendant(INodeDirectory inodeDirectory)Verify if this  INodesInPathis a descendant of the
 requestedINodeDirectory. | 
| boolean | INodeDirectory. isDescendantOfSnapshotRoot(INodeDirectory snapshotRootDir)Check if this directory is a descendant directory
 of a snapshot root directory. | 
| Constructor and Description | 
|---|
| CopyWithQuota(INodeDirectory dir) | 
| DstReference(INodeDirectory parent,
            INodeReference.WithCount referred,
            int dstSnapshotId) | 
| INodeDirectory(INodeDirectory other,
              boolean adopt,
              INode.Feature... featuresToCopy)Copy constructor | 
| SnapshotCopy(INodeDirectory dir) | 
| WithName(INodeDirectory parent,
        INodeReference.WithCount referred,
        byte[] name,
        int lastSnapshotId) | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Snapshot.RootThe root directory of the snapshot. | 
| Modifier and Type | Method and Description | 
|---|---|
| INodeDirectory | SnapshotManager. getSnapshottableAncestorDir(INodesInPath iip)Get the snapshot root directory for the given directory. | 
| INodeDirectory | SnapshotManager. getSnapshottableRoot(INodesInPath iip)Find the source root directory where the snapshot will be taken
 for a given path. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | SnapshotManager. addSnapshottable(INodeDirectory dir)Add the given snapshottable directory to  SnapshotManager.snapshottables. | 
| List<T> | DiffListByArrayList. getMinListForRange(int startIndex,
                  int endIndex,
                  INodeDirectory dir) | 
| List<DirectoryWithSnapshotFeature.DirectoryDiff> | DiffListBySkipList. getMinListForRange(int fromIndex,
                  int toIndex,
                  INodeDirectory dir)This function returns the minimal set of diffs required to combine in
 order to generate all the changes occurred between fromIndex and
 toIndex. | 
| List<T> | DiffList. getMinListForRange(int startIndex,
                  int endIndex,
                  INodeDirectory dir)Returns the list of minimal list of elements need to combine to generate
 cumulative sum from startIndex to endIndex. | 
| boolean | SnapshotManager. isDescendantOfSnapshotRoot(INodeDirectory dir) | 
| static org.apache.hadoop.hdfs.server.namenode.INode | SnapshotFSImageFormat. loadCreated(byte[] createdNodeName,
           INodeDirectory parent)Load a node stored in the created list from fsimage. | 
| static void | SnapshotFSImageFormat. loadDirectoryDiffList(INodeDirectory dir,
                     DataInput in,
                     FSImageFormat.Loader loader)Load the  SnapshotDifflist for the INodeDirectoryWithSnapshot
 directory. | 
| static void | SnapshotFSImageFormat. loadSnapshotList(INodeDirectory snapshottableParent,
                int numSnapshots,
                DataInput in,
                FSImageFormat.Loader loader)Load snapshots and snapshotQuota for a Snapshottable directory. | 
| static void | SnapshotFSImageFormat. saveDirectoryDiffList(INodeDirectory dir,
                     DataOutput out,
                     SnapshotFSImageFormat.ReferenceMap referenceMap) | 
| static void | SnapshotFSImageFormat. saveSnapshots(INodeDirectory current,
             DataOutput out)Save snapshots and snapshot quota for a snapshottable directory. | 
| static org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus.Bean | SnapshotManager. toBean(INodeDirectory d) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | SnapshotManager. removeSnapshottable(List<INodeDirectory> toRemove)Remove snapshottable directories from  SnapshotManager.snapshottables | 
| Constructor and Description | 
|---|
| DirectoryDiff(int snapshotId,
             INodeDirectory dir,
             org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff diff) | 
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.