java.lang.Comparable<byte[]>, INodeAttributes, INodeDirectoryAttributes, Diff.Element<byte[]>, org.apache.hadoop.util.LightWeightGSet.LinkedElementpublic static class Snapshot.Root extends INodeDirectory
INodeDirectory.SnapshotAndINodeINode.BlocksMapUpdateInfo, INode.Feature, INode.QuotaDelta, INode.ReclaimContextINodeAttributes.SnapshotCopyINodeDirectoryAttributes.CopyWithQuota, INodeDirectoryAttributes.SnapshotCopyDEFAULT_FILES_PER_DIRECTORYfeatures| Modifier and Type | Method | Description |
|---|---|---|
ContentSummaryComputationContext |
computeContentSummary(int snapshotId,
ContentSummaryComputationContext summary) |
Count subtree content summary with a
ContentCounts. |
INode |
getChild(byte[] name,
int snapshotId) |
|
ReadOnlyList<INode> |
getChildrenList(int snapshotId) |
|
java.lang.String |
getFullPathName() |
|
java.lang.String |
getRootFullPathName() |
Get the full path name of the root directory of this snapshot.
|
boolean |
metadataEquals(INodeDirectoryAttributes other) |
Compare the metadata with another INodeDirectory
|
accept, addChild, addChild, addChildAtLoading, 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, isDescendantOfSnapshotRoot, isDirectory, isSnapshottable, isWithSnapshot, recordModification, removeChild, removeChild, removeSnapshot, removeSnapshottableFeature, renameSnapshot, replaceChild, saveChild2Snapshot, searchChild, setSnapshotQuota, toDetailString, undoRename4DstParent, undoRename4ScrParent, valueOfaddAclFeature, addFeature, addXAttrFeature, getAclFeature, getFeature, getFeatures, getFsPermissionShort, getId, getLocalNameBytes, getNext, getPermissionLong, getPermissionStatus, removeAclFeature, removeFeature, removeXAttrFeature, setAccessTime, setLocalName, setModificationTime, setNext, updateModificationTimeasFile, asReference, asSymlink, compareTo, computeAndConvertContentSummary, computeContentSummary, computeQuotaUsage, computeQuotaUsage, dumpINode, dumpParentINodes, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getAclFeature, getFsPermission, getFullPathAndObjectString, getGroupName, getKey, getLocalName, getModificationTime, getObjectString, getParent, getParentReference, getParentString, getPathComponents, getPathComponents, getPathNames, getStoragePolicyIDForQuota, getUserName, getXAttrFeature, hashCode, isAncestorDirectory, isDeleted, isFile, isInCurrentState, isInLatestSnapshot, isLastReference, isQuotaSet, isReference, isSetStoragePolicy, isSymlink, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessTime, getAclFeature, getFsPermission, getFsPermissionShort, getGroupName, getLocalNameBytes, getModificationTime, getPermissionLong, getUserName, getXAttrFeaturepublic ReadOnlyList<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 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 ContentSummaryComputationContext computeContentSummary(int snapshotId, ContentSummaryComputationContext summary) throws org.apache.hadoop.security.AccessControlException
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 boolean metadataEquals(INodeDirectoryAttributes other)
INodeDirectorymetadataEquals in interface INodeDirectoryAttributesmetadataEquals in class INodeDirectorypublic java.lang.String getFullPathName()
getFullPathName in class INodepublic java.lang.String getRootFullPathName()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.