|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.namenode.INode
org.apache.hadoop.hdfs.server.namenode.INodeReference
org.apache.hadoop.hdfs.server.namenode.INodeReference.WithCount
public static class INodeReference.WithCount
An anonymous reference with reference count.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.hdfs.server.namenode.INodeReference |
---|
INodeReference.DstReference, INodeReference.WithCount, INodeReference.WithName |
Nested classes/interfaces inherited from class org.apache.hadoop.hdfs.server.namenode.INode |
---|
INode.BlocksMapUpdateInfo |
Nested classes/interfaces inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes |
---|
INodeAttributes.SnapshotCopy |
Field Summary | |
---|---|
static Comparator<INodeReference.WithName> |
WITHNAME_COMPARATOR
Compare snapshot with IDs, where null indicates the current status thus is greater than any non-null snapshot. |
Fields inherited from class org.apache.hadoop.hdfs.server.namenode.INode |
---|
LOG |
Constructor Summary | |
---|---|
INodeReference.WithCount(INodeReference parent,
org.apache.hadoop.hdfs.server.namenode.INode referred)
|
Method Summary | |
---|---|
void |
addReference(INodeReference ref)
Increment and then return the reference count. |
int |
getReferenceCount()
|
void |
removeReference(INodeReference ref)
Decrement and then return the reference count. |
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INodeReference |
---|
asDirectory, asFile, asReference, asSymlink, cleanSubtree, clear, computeContentSummary, computeQuotaUsage, destroyAndCollectBlocks, dumpTreeRecursively, getAccessTime, getDsQuota, getDstSnapshotId, getFsPermission, getFsPermissionShort, getGroupName, getId, getLocalNameBytes, getModificationTime, getNsQuota, getPermissionLong, getPermissionStatus, getReferredINode, getSnapshotINode, getUserName, isDirectory, isFile, isReference, isSymlink, setAccessTime, setLocalName, setModificationTime, setReferredINode, tryRemoveReference, updateModificationTime |
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INode |
---|
addSpaceConsumed, compareTo, computeContentSummary, computeQuotaUsage, computeQuotaUsage, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getFsPermission, getFullPathName, getGroupName, getKey, getLocalName, getModificationTime, getObjectString, getParent, getParentReference, getParentString, getUserName, hashCode, isAncestorDirectory, isInLatestSnapshot, isQuotaSet, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toDetailString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Comparator<INodeReference.WithName> WITHNAME_COMPARATOR
Constructor Detail |
---|
public INodeReference.WithCount(INodeReference parent, org.apache.hadoop.hdfs.server.namenode.INode referred)
Method Detail |
---|
public int getReferenceCount()
public void addReference(INodeReference ref)
public void removeReference(INodeReference ref)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |