| Package | Description |
|---|---|
| org.apache.hadoop.hdfs | |
| org.apache.hadoop.hdfs.client.impl |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.hadoop.hdfs.util |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected BlockReader |
DFSInputStream.getBlockReader(LocatedBlock targetBlock,
long offsetInBlock,
long length,
java.net.InetSocketAddress targetAddr,
org.apache.hadoop.fs.StorageType storageType,
DatanodeInfo datanode) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
BlockReaderRemote |
This is a wrapper around connection to datanode
and understands checksum, offset etc.
|
class |
ExternalBlockReader |
An ExternalBlockReader uses pluggable ReplicaAccessor objects to read from
replicas.
|
| Modifier and Type | Method | Description |
|---|---|---|
BlockReader |
BlockReaderFactory.build() |
Build a BlockReader with the given options.
|
static BlockReader |
BlockReaderRemote.newBlockReader(java.lang.String file,
ExtendedBlock block,
org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken,
long startOffset,
long len,
boolean verifyChecksum,
java.lang.String clientName,
Peer peer,
DatanodeID datanodeID,
PeerCache peerCache,
CachingStrategy cachingStrategy,
int networkDistance,
org.apache.hadoop.conf.Configuration configuration) |
Create a new BlockReader specifically to satisfy a read.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
IOUtilsClient.updateReadStatistics(ReadStatistics readStatistics,
int nRead,
BlockReader blockReader) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.