public static class Snapshot.Root extends INodeDirectory
INodeDirectory.SnapshotAndINodeINode.BlocksMapUpdateInfo, INode.Feature, INode.QuotaDelta, INode.ReclaimContextINodeDirectoryAttributes.CopyWithQuota, INodeDirectoryAttributes.SnapshotCopyDEFAULT_FILES_PER_DIRECTORY| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext |
computeContentSummary(int snapshotId,
org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext summary)
Count subtree content summary with a
ContentCounts. |
org.apache.hadoop.hdfs.server.namenode.INode |
getChild(byte[] name,
int snapshotId) |
org.apache.hadoop.hdfs.util.ReadOnlyList<org.apache.hadoop.hdfs.server.namenode.INode> |
getChildrenList(int snapshotId) |
String |
getFullPathName() |
String |
getRootFullPathName()
Get the full path name of the root directory of this snapshot.
|
addChild, addChild, addSnapshot, addSnapshotFeature, addSnapshottableFeature, addSpaceConsumed, asDirectory, cleanSubtree, cleanSubtreeRecursively, clear, clearChildren, computeDirectoryContentSummary, computeQuotaUsage, computeQuotaUsage4CurrentDirectory, destroyAndCollectBlocks, dumpTreeRecursively, dumpTreeRecursively, getChildrenNum, getDiffs, getDirectorySnapshottableFeature, getDirectoryWithQuotaFeature, getDirectoryWithSnapshotFeature, getLocalStoragePolicyID, getQuotaCounts, getSnapshot, getSnapshotINode, getStoragePolicyID, isDirectory, isSnapshottable, isWithSnapshot, metadataEquals, recordModification, removeChild, removeChild, removeSnapshot, removeSnapshottableFeature, renameSnapshot, replaceChild, saveChild2Snapshot, searchChild, setSnapshotQuota, toDetailString, undoRename4DstParent, undoRename4ScrParent, valueOfaddAclFeature, addFeature, addXAttrFeature, getAclFeature, getFeature, getFeatures, getFsPermissionShort, getId, getLocalNameBytes, getNext, getPermissionLong, removeAclFeature, removeFeature, removeXAttrFeature, setAccessTime, setLocalName, setModificationTime, setNext, updateModificationTimeasFile, asReference, asSymlink, compareTo, computeAndConvertContentSummary, computeContentSummary, computeQuotaUsage, computeQuotaUsage, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getAclFeature, getFsPermission, getGroupName, getKey, getLocalName, getModificationTime, getObjectString, getParent, getParentReference, getParentString, getPathComponents, getPathComponents, getPathNames, getStoragePolicyIDForQuota, getUserName, getXAttrFeature, hashCode, isAncestorDirectory, isDeleted, isFile, isInCurrentState, isInLatestSnapshot, isLastReference, isQuotaSet, isReference, isSymlink, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toStringpublic org.apache.hadoop.hdfs.util.ReadOnlyList<org.apache.hadoop.hdfs.server.namenode.INode> getChildrenList(int snapshotId)
getChildrenList in class INodeDirectorysnapshotId - if it is not Snapshot.CURRENT_STATE_ID, get the result
from the corresponding snapshot; otherwise, get the result from
the current directory.public org.apache.hadoop.hdfs.server.namenode.INode getChild(byte[] name,
int snapshotId)
getChild in class INodeDirectoryname - the name of the childsnapshotId - if it is not Snapshot.CURRENT_STATE_ID, get the result
from the corresponding snapshot; otherwise, get the result from
the current directory.public org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext computeContentSummary(int snapshotId,
org.apache.hadoop.hdfs.server.namenode.ContentSummaryComputationContext summary)
throws org.apache.hadoop.security.AccessControlException
org.apache.hadoop.hdfs.server.namenode.INodeContentCounts.computeContentSummary in class INodeDirectorysnapshotId - Specify the time range for the calculation. If this
parameter equals to Snapshot.CURRENT_STATE_ID,
the result covers both the current states and all the
snapshots. Otherwise the result only covers all the
files/directories contained in the specific snapshot.summary - the context object holding counts for the subtree.org.apache.hadoop.security.AccessControlExceptionpublic String getFullPathName()
getFullPathName in class org.apache.hadoop.hdfs.server.namenode.INodepublic String getRootFullPathName()
Copyright © 2022 Apache Software Foundation. All rights reserved.