Package | Description |
---|---|
org.apache.hadoop.hdfs |
A distributed implementation of
FileSystem . |
org.apache.hadoop.hdfs.protocol | |
org.apache.hadoop.hdfs.protocolPB | |
org.apache.hadoop.hdfs.server.blockmanagement | |
org.apache.hadoop.hdfs.server.common | |
org.apache.hadoop.hdfs.web |
Modifier and Type | Method and Description |
---|---|
LocatedBlocks |
DFSClient.getLocatedBlocks(String src,
long start) |
LocatedBlocks |
DFSClient.getLocatedBlocks(String src,
long start,
long length) |
Modifier and Type | Method and Description |
---|---|
static BlockLocation[] |
DFSUtil.locatedBlocks2Locations(LocatedBlocks blocks)
Convert a LocatedBlocks to BlockLocations[]
|
Modifier and Type | Method and Description |
---|---|
LocatedBlocks |
HdfsLocatedFileStatus.getBlockLocations() |
LocatedBlocks |
ClientProtocol.getBlockLocations(String src,
long offset,
long length)
Get locations of the blocks of the specified file within the specified range.
|
Constructor and Description |
---|
HdfsLocatedFileStatus(long length,
boolean isdir,
int block_replication,
long blocksize,
long modification_time,
long access_time,
FsPermission permission,
String owner,
String group,
byte[] symlink,
byte[] path,
long fileId,
LocatedBlocks locations,
int childrenNum)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static LocatedBlocks |
PBHelper.convert(HdfsProtos.LocatedBlocksProto lb) |
LocatedBlocks |
ClientNamenodeProtocolTranslatorPB.getBlockLocations(String src,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
static HdfsProtos.LocatedBlocksProto |
PBHelper.convert(LocatedBlocks lb) |
Modifier and Type | Method and Description |
---|---|
LocatedBlocks |
BlockManager.createLocatedBlocks(BlockInfo[] blocks,
long fileSizeExcludeBlocksUnderConstruction,
boolean isFileUnderConstruction,
long offset,
long length,
boolean needBlockToken,
boolean inSnapshot)
Create a LocatedBlocks.
|
Modifier and Type | Method and Description |
---|---|
static DatanodeInfo |
JspHelper.bestNode(LocatedBlocks blks,
Configuration conf) |
Modifier and Type | Method and Description |
---|---|
static LocatedBlocks |
JsonUtil.toLocatedBlocks(Map<?,?> json)
Convert a Json map to LocatedBlock.
|
Modifier and Type | Method and Description |
---|---|
static String |
JsonUtil.toJsonString(LocatedBlocks locatedblocks)
Convert LocatedBlocks to a Json string.
|
Copyright © 2013 Apache Software Foundation. All rights reserved.