| Package | Description |
|---|---|
| org.apache.hadoop.hdfs | |
| org.apache.hadoop.hdfs.protocol |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.hadoop.hdfs.protocolPB |
| Modifier and Type | Field | Description |
|---|---|---|
protected LocatedBlocks |
DFSInputStream.locatedBlocks |
| Modifier and Type | Method | Description |
|---|---|---|
protected LocatedBlocks |
DFSClient.getBlockLocations(java.lang.String src,
long length) |
|
LocatedBlocks |
DFSClient.getLocatedBlocks(java.lang.String src,
long start) |
Get locations of the blocks of the specified file `src` from offset
`start` within the prefetch size which is related to parameter
`dfs.client.read.prefetch.size`.
|
LocatedBlocks |
DFSClient.getLocatedBlocks(java.lang.String src,
long start,
long length) |
This is just a wrapper around callGetBlockLocations, but non-static so that
we can stub it out for tests.
|
protected LocatedBlocks |
DFSInputStream.getLocatedBlocks() |
|
LocatedBlocks |
DistributedFileSystem.getLocatedBlocks(org.apache.hadoop.fs.Path p,
long start,
long len) |
Returns LocatedBlocks of the corresponding HDFS file p from offset start
for length len.
|
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.fs.BlockLocation[] |
DFSUtilClient.locatedBlocks2Locations(LocatedBlocks blocks) |
Convert a LocatedBlocks to BlockLocations[]
|
void |
DFSClient.removeNodeFromDeadNodeDetector(DFSInputStream dfsInputStream,
LocatedBlocks locatedBlocks) |
Remove datanodes that given block placed on from DeadNodeDetector.
|
| Modifier and Type | Method | Description |
|---|---|---|
LocatedBlocks |
ClientProtocol.getBlockLocations(java.lang.String src,
long offset,
long length) |
Get locations of the blocks of the specified file
within the specified range.
|
LocatedBlocks |
HdfsLocatedFileStatus.getLocatedBlocks() |
Get block locations for this entity, in HDFS format.
|
| Modifier and Type | Method | Description |
|---|---|---|
HdfsFileStatus.Builder |
HdfsFileStatus.Builder.locations(LocatedBlocks locations) |
Set the block locations for this entity (default = null).
|
| Modifier and Type | Method | Description |
|---|---|---|
static LocatedBlocks |
PBHelperClient.convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto lb) |
|
LocatedBlocks |
ClientNamenodeProtocolTranslatorPB.getBlockLocations(java.lang.String src,
long offset,
long length) |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlocksProto |
PBHelperClient.convert(LocatedBlocks lb) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.