You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by springring <sp...@126.com> on 2009/09/27 17:19:55 UTC

Bloksmap.map

Hi,
I've been puzzling .

hadoop-0.17.1\src\java\org\apache\hadoop\dfs\Blocksmap.java line 291

  private Map<Block, BlockInfo> map = new HashMap<Block, BlockInfo>();

why is not 
--  private Map<BlockInfo, Block> map = new HashMap<BlockInfo, Block>();

i think if Map<BlockInfo, Block>, the key will be BlockInfo, mean {INodeFile,Datanode},
and it can be reduced by INodeFile or/and Datanode.

Springring.Xu