public class INodeMap
extends Object
Storing all the
INodes and maintaining the mapping between INode ID
and INode.
-
Method Summary
void
Get the
INode with the given id from the map.
final void
final void
Remove a
INode from the map.
int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
-
put
public final void put(INode inode)
Add an
INode into the
INode map. Replace the old value if
necessary.
- Parameters:
inode - The INode to be added to the map.
-
remove
public final void remove(INode inode)
Remove a
INode from the map.
- Parameters:
inode - The INode to be removed.
-
size
public int size()
- Returns:
- The size of the map.
-
get
public INode get(long id)
Get the
INode with the given id from the map.
- Parameters:
id - ID of the INode.
- Returns:
- The
INode in the map with the given id. Return null if no
such INode in the map.
-
clear
public void clear()
Clear the map