java.lang.Comparable<byte[]>, INodeAttributes, Diff.Element<byte[]>, org.apache.hadoop.util.LightWeightGSet.LinkedElementINodeDirectory, INodeFile, INodeSymlink@Private public abstract class INodeWithAdditionalFields extends INode implements org.apache.hadoop.util.LightWeightGSet.LinkedElement
INode with additional fields including id, name, permission,
access time and modification time.INode.BlocksMapUpdateInfo, INode.Feature, INode.QuotaDelta, INode.ReclaimContextINodeAttributes.SnapshotCopy| Modifier and Type | Field | Description |
|---|---|---|
protected INode.Feature[] |
features |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAclFeature(AclFeature f) |
|
protected void |
addFeature(INode.Feature f) |
|
void |
addXAttrFeature(XAttrFeature f) |
|
AclFeature |
getAclFeature(int snapshotId) |
|
protected <T extends INode.Feature> |
getFeature(java.lang.Class<? extends INode.Feature> clazz) |
|
INode.Feature[] |
getFeatures() |
|
short |
getFsPermissionShort() |
|
long |
getId() |
Get inode id
|
byte[] |
getLocalNameBytes() |
|
org.apache.hadoop.util.LightWeightGSet.LinkedElement |
getNext() |
|
long |
getPermissionLong() |
|
org.apache.hadoop.fs.permission.PermissionStatus |
getPermissionStatus(int snapshotId) |
Get the
PermissionStatus |
void |
removeAclFeature() |
|
protected void |
removeFeature(INode.Feature f) |
|
void |
removeXAttrFeature() |
|
void |
setAccessTime(long accessTime) |
Set last access time of inode.
|
void |
setLocalName(byte[] name) |
Set local file name
|
void |
setModificationTime(long modificationTime) |
Set the last modification time of inode.
|
void |
setNext(org.apache.hadoop.util.LightWeightGSet.LinkedElement next) |
|
INode |
updateModificationTime(long mtime,
int latestSnapshotId) |
Update modification time if it is larger than the current value.
|
accept, addSpaceConsumed, asDirectory, asFile, asReference, asSymlink, cleanSubtree, clear, compareTo, computeAndConvertContentSummary, computeContentSummary, computeContentSummary, computeQuotaUsage, computeQuotaUsage, computeQuotaUsage, destroyAndCollectBlocks, dumpINode, dumpParentINodes, dumpTreeRecursively, dumpTreeRecursively, dumpTreeRecursively, equals, getAccessTime, getAclFeature, getFsPermission, getFullPathAndObjectString, getFullPathName, getGroupName, getKey, getLocalName, getLocalStoragePolicyID, getModificationTime, getObjectString, getParent, getParentReference, getParentString, getPathComponents, getPathComponents, getPathNames, getQuotaCounts, getSnapshotINode, getStoragePolicyID, getStoragePolicyIDForQuota, getUserName, getXAttrFeature, hashCode, isAncestorDirectory, isDeleted, isDirectory, isFile, isInCurrentState, isInLatestSnapshot, isLastReference, isQuotaSet, isReference, isSetStoragePolicy, isSymlink, setAccessTime, setModificationTime, setParent, setParentReference, shouldRecordInSrcSnapshot, toDetailString, toStringprotected INode.Feature[] features
public void setNext(org.apache.hadoop.util.LightWeightGSet.LinkedElement next)
setNext in interface org.apache.hadoop.util.LightWeightGSet.LinkedElementpublic org.apache.hadoop.util.LightWeightGSet.LinkedElement getNext()
getNext in interface org.apache.hadoop.util.LightWeightGSet.LinkedElementpublic final byte[] getLocalNameBytes()
getLocalNameBytes in interface INodeAttributespublic final void setLocalName(byte[] name)
INodesetLocalName in class INodepublic final org.apache.hadoop.fs.permission.PermissionStatus getPermissionStatus(int snapshotId)
INodePermissionStatusgetPermissionStatus in class INodepublic final short getFsPermissionShort()
getFsPermissionShort in interface INodeAttributespublic long getPermissionLong()
getPermissionLong in interface INodeAttributespublic final AclFeature getAclFeature(int snapshotId)
public final INode updateModificationTime(long mtime, int latestSnapshotId)
updateModificationTime in class INodepublic final void setModificationTime(long modificationTime)
INodesetModificationTime in class INodepublic final void setAccessTime(long accessTime)
setAccessTime in class INodeprotected void addFeature(INode.Feature f)
protected void removeFeature(INode.Feature f)
protected <T extends INode.Feature> T getFeature(java.lang.Class<? extends INode.Feature> clazz)
public void removeAclFeature()
public void addAclFeature(AclFeature f)
public void removeXAttrFeature()
public void addXAttrFeature(XAttrFeature f)
public final INode.Feature[] getFeatures()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.