Class INodeId
java.lang.Object
org.apache.hadoop.util.SequentialNumber
org.apache.hadoop.hdfs.server.namenode.INodeId
- All Implemented Interfaces:
org.apache.hadoop.util.IdGenerator
@Private
public class INodeId
extends org.apache.hadoop.util.SequentialNumber
An id which uniquely identifies an inode. Id 1 to 16384 are reserved for
potential future usage. The id won't be recycled and is not expected to wrap
around in a very long time. Root inode id is always 16385. Id 0 is used for
backward compatibility support.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longThe last reserved inode id.static final long -
Method Summary
Methods inherited from class org.apache.hadoop.util.SequentialNumber
equals, getCurrentValue, hashCode, nextValue, setCurrentValue, setIfGreater, skipTo
-
Field Details
-
LAST_RESERVED_ID
public static final long LAST_RESERVED_IDThe last reserved inode id. InodeIDs are allocated from LAST_RESERVED_ID + 1.- See Also:
-
ROOT_INODE_ID
public static final long ROOT_INODE_ID- See Also:
-
INVALID_INODE_ID
public static final long INVALID_INODE_ID- See Also:
-