public static class INodeReference.WithCount extends INodeReference
INodeReference.DstReference, INodeReference.WithCount, INodeReference.WithName
INode.BlocksMapUpdateInfo, INode.Feature, INode.QuotaDelta, INode.ReclaimContext
INodeAttributes.SnapshotCopy
Modifier and Type | Field and Description |
---|---|
static Comparator<INodeReference.WithName> |
WITHNAME_COMPARATOR
Compare snapshot with IDs, where null indicates the current status thus
is greater than any non-null snapshot.
|
Constructor and Description |
---|
INodeReference.WithCount(INodeReference parent,
org.apache.hadoop.hdfs.server.namenode.INode referred) |
Modifier and Type | Method and Description |
---|---|
void |
addReference(INodeReference ref)
Increment and then return the reference count.
|
INodeReference.WithName |
getLastWithName()
Return the last WithName reference if there is any, null otherwise.
|
INodeReference |
getParentRef(int snapshotId) |
int |
getReferenceCount() |
void |
removeReference(INodeReference ref)
Decrement and then return the reference count.
|
asDirectory, asFile, asReference, asSymlink, cleanSubtree, clear, computeContentSummary, computeQuotaUsage, destroyAndCollectBlocks, dumpTreeRecursively, getAccessTime, getDstSnapshotId, getFsPermission, getFsPermissionShort, getGroupName, getId, getLocalNameBytes, getLocalStoragePolicyID, getModificationTime, getPermissionLong, getPermissionStatus, getQuotaCounts, getReferredINode, getSnapshotINode, getStoragePolicyID, getUserName, isDirectory, isFile, isReference, isSymlink, setAccessTime, setLocalName, setModificationTime, setReferredINode, tryRemoveReference, updateModificationTime
addSpaceConsumed, compareTo, computeAndConvertContentSummary, computeContentSummary, computeQuotaUsage, computeQuotaUsage, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getAclFeature, getFsPermission, getFullPathName, getGroupName, getKey, getLocalName, getModificationTime, getObjectString, getParent, getParentReference, getParentString, getPathComponents, getPathComponents, getPathNames, getStoragePolicyIDForQuota, getUserName, getXAttrFeature, hashCode, isAncestorDirectory, isInLatestSnapshot, isQuotaSet, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toDetailString, toString
public static final Comparator<INodeReference.WithName> WITHNAME_COMPARATOR
public INodeReference.WithCount(INodeReference parent, org.apache.hadoop.hdfs.server.namenode.INode referred)
public int getReferenceCount()
public void addReference(INodeReference ref)
public void removeReference(INodeReference ref)
public INodeReference.WithName getLastWithName()
public INodeReference getParentRef(int snapshotId)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.