INodeId (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode, class: INodeId

Package org.apache.hadoop.hdfs.server.namenode

# 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

  Fields
  Modifier and Type
  Field
  Description
  `static final long`
  `INVALID_INODE_ID`
  `static final long`
  `LAST_RESERVED_ID`
  The last reserved inode id.
  `static final long`
  `ROOT_INODE_ID`

- ## Method Summary

  ### Methods inherited from class org.apache.hadoop.util.SequentialNumber

  `equals, getCurrentValue, hashCode, nextValue, setCurrentValue, setIfGreater, skipTo`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LAST_RESERVED_ID

    public static final long LAST_RESERVED_ID
    The last reserved inode id. InodeIDs are allocated from LAST_RESERVED_ID + 1.
    See Also:
      - Constant Field Values

  - ### ROOT_INODE_ID

    public static final long ROOT_INODE_ID
    See Also:
      - Constant Field Values

  - ### INVALID_INODE_ID

    public static final long INVALID_INODE_ID
    See Also:
      - Constant Field Values