org.apache.hadoop.hdfs.server.namenode
Class INodeReference.WithCount

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.INode
      extended by org.apache.hadoop.hdfs.server.namenode.INodeReference
          extended by org.apache.hadoop.hdfs.server.namenode.INodeReference.WithCount
All Implemented Interfaces:
Comparable<byte[]>, org.apache.hadoop.hdfs.server.namenode.INodeAttributes, Diff.Element<byte[]>
Enclosing class:
INodeReference

public static class INodeReference.WithCount
extends INodeReference

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, computeAndConvertContentSummary, 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

WITHNAME_COMPARATOR

public static final Comparator<INodeReference.WithName> WITHNAME_COMPARATOR
Compare snapshot with IDs, where null indicates the current status thus is greater than any non-null snapshot.

Constructor Detail

INodeReference.WithCount

public INodeReference.WithCount(INodeReference parent,
                                org.apache.hadoop.hdfs.server.namenode.INode referred)
Method Detail

getReferenceCount

public int getReferenceCount()

addReference

public void addReference(INodeReference ref)
Increment and then return the reference count.


removeReference

public void removeReference(INodeReference ref)
Decrement and then return the reference count.



Copyright © 2014 Apache Software Foundation. All Rights Reserved.