|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hdfs.server.namenode.INodeMap
public class INodeMap
Storing all the INodes and maintaining the mapping between INode ID
and INode.
| Method Summary | |
|---|---|
void |
clear()
Clear the map |
org.apache.hadoop.hdfs.server.namenode.INode |
get(long id)
Get the INode with the given id from the map. |
Iterator<org.apache.hadoop.hdfs.server.namenode.INodeWithAdditionalFields> |
getMapIterator()
|
void |
put(org.apache.hadoop.hdfs.server.namenode.INode inode)
Add an INode into the INode map. |
void |
remove(org.apache.hadoop.hdfs.server.namenode.INode inode)
Remove a INode from the map. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Iterator<org.apache.hadoop.hdfs.server.namenode.INodeWithAdditionalFields> getMapIterator()
public final void put(org.apache.hadoop.hdfs.server.namenode.INode inode)
INode into the INode map. Replace the old value if
necessary.
inode - The INode to be added to the map.public final void remove(org.apache.hadoop.hdfs.server.namenode.INode inode)
INode from the map.
inode - The INode to be removed.public int size()
public org.apache.hadoop.hdfs.server.namenode.INode get(long id)
INode with the given id from the map.
id - ID of the INode.
INode in the map with the given id. Return null if no
such INode in the map.public void clear()
map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||