程序包 | 说明 |
---|---|
org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem . |
org.apache.hadoop.hdfs.protocol | |
org.apache.hadoop.hdfs.server.namenode | |
org.apache.hadoop.hdfs.web |
限定符和类型 | 方法和说明 |
---|---|
static BlockLocation[] |
DFSUtil.locatedBlocks2Locations(LocatedBlocks blocks)
Convert a LocatedBlocks to BlockLocations[]
|
限定符和类型 | 方法和说明 |
---|---|
LocatedBlocks |
ClientProtocol.getBlockLocations(String src,
long offset,
long length)
Get locations of the blocks of the specified file within the specified range.
|
限定符和类型 | 方法和说明 |
---|---|
LocatedBlocks |
NameNode.getBlockLocations(String src,
long offset,
long length)
Get locations of the blocks of the specified file within the specified range.
|
LocatedBlocks |
FSNamesystem.getBlockLocations(String src,
long offset,
long length)
Get block locations within the specified range.
|
LocatedBlocks |
FSNamesystem.getBlockLocations(String src,
long offset,
long length,
boolean doAccessTime,
boolean needBlockToken,
boolean checkSafeMode)
Get block locations within the specified range.
|
限定符和类型 | 方法和说明 |
---|---|
static LocatedBlocks |
JsonUtil.toLocatedBlocks(Map<?,?> json)
Convert a Json map to LocatedBlock.
|
限定符和类型 | 方法和说明 |
---|---|
static String |
JsonUtil.toJsonString(LocatedBlocks locatedblocks)
Convert LocatedBlocks to a Json string.
|
Copyright © 2009 The Apache Software Foundation