org.apache.hadoop.hdfs.server.namenode.snapshot
Class Snapshot.Root

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.INode
      extended by org.apache.hadoop.hdfs.server.namenode.INodeWithAdditionalFields
          extended by org.apache.hadoop.hdfs.server.namenode.INodeDirectory
              extended by org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot.Root
All Implemented Interfaces:
Comparable<byte[]>, org.apache.hadoop.hdfs.server.namenode.INodeAttributes, org.apache.hadoop.hdfs.server.namenode.INodeDirectoryAttributes, Diff.Element<byte[]>, org.apache.hadoop.util.LightWeightGSet.LinkedElement
Enclosing class:
org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot

public static class Snapshot.Root
extends INodeDirectory

The root directory of the snapshot.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hdfs.server.namenode.INodeDirectory
INodeDirectory.SnapshotAndINode
 
Nested classes/interfaces inherited from class org.apache.hadoop.hdfs.server.namenode.INode
INode.BlocksMapUpdateInfo, INode.Feature
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeDirectoryAttributes
INodeDirectoryAttributes.CopyWithQuota, INodeDirectoryAttributes.SnapshotCopy
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hdfs.server.namenode.INodeDirectory
DEFAULT_FILES_PER_DIRECTORY
 
Fields inherited from class org.apache.hadoop.hdfs.server.namenode.INodeWithAdditionalFields
features
 
Fields inherited from class org.apache.hadoop.hdfs.server.namenode.INode
LOG
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INodeDirectory
addChild, addChild, addSnapshotFeature, addSpaceConsumed, asDirectory, cleanSubtree, cleanSubtreeRecursively, clear, clearChildren, computeContentSummary, computeQuotaUsage, computeQuotaUsage4CurrentDirectory, destroyAndCollectBlocks, dumpTreeRecursively, dumpTreeRecursively, getChildrenNum, getDiffs, getDirectoryWithQuotaFeature, getDirectoryWithSnapshotFeature, getQuotaCounts, getSnapshotINode, isDirectory, isSnapshottable, isWithSnapshot, metadataEquals, recordModification, removeChild, removeChild, replaceChild, replaceSelf4INodeDirectory, replaceSelf4INodeDirectorySnapshottable, saveChild2Snapshot, toDetailString, undoRename4DstParent, undoRename4ScrParent, valueOf
 
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INodeWithAdditionalFields
addAclFeature, addFeature, getFeature, getFeatures, getFsPermissionShort, getId, getLocalNameBytes, getNext, getPermissionLong, removeAclFeature, removeFeature, setAccessTime, setLocalName, setModificationTime, setNext, updateModificationTime
 
Methods inherited from class org.apache.hadoop.hdfs.server.namenode.INode
asFile, asReference, asSymlink, compareTo, computeAndConvertContentSummary, computeContentSummary, computeQuotaUsage, computeQuotaUsage, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getAclFeature, getFsPermission, getGroupName, getKey, getLocalName, getModificationTime, getObjectString, getParent, getParentReference, getParentString, getUserName, hashCode, isAncestorDirectory, isFile, isInLatestSnapshot, isQuotaSet, isReference, isSymlink, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hdfs.server.namenode.INodeAttributes
getAccessTime, getAclFeature, getFsPermission, getFsPermissionShort, getGroupName, getLocalNameBytes, getModificationTime, getPermissionLong, getUserName
 

Method Detail

getChildrenList

public org.apache.hadoop.hdfs.util.ReadOnlyList<org.apache.hadoop.hdfs.server.namenode.INode> getChildrenList(int snapshotId)
Overrides:
getChildrenList in class INodeDirectory
Parameters:
snapshotId - if it is not Snapshot.CURRENT_STATE_ID, get the result from the corresponding snapshot; otherwise, get the result from the current directory.
Returns:
the current children list if the specified snapshot is null; otherwise, return the children list corresponding to the snapshot. Note that the returned list is never null.

getChild

public org.apache.hadoop.hdfs.server.namenode.INode getChild(byte[] name,
                                                             int snapshotId)
Overrides:
getChild in class INodeDirectory
Parameters:
name - the name of the child
snapshotId - if it is not Snapshot.CURRENT_STATE_ID, get the result from the corresponding snapshot; otherwise, get the result from the current directory.
Returns:
the child inode.

getFullPathName

public String getFullPathName()
Overrides:
getFullPathName in class org.apache.hadoop.hdfs.server.namenode.INode


Copyright © 2014 Apache Software Foundation. All Rights Reserved.