| 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.protocol.datatransfer | |
| org.apache.hadoop.hdfs.server.datanode |
| Modifier and Type | Field | Description |
|---|---|---|
protected CachingStrategy |
DFSInputStream.cachingStrategy |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.concurrent.atomic.AtomicReference<CachingStrategy> |
DFSOutputStream.cachingStrategy |
| Modifier and Type | Method | Description |
|---|---|---|
CachingStrategy |
DFSClient.getDefaultReadCachingStrategy() |
|
CachingStrategy |
DFSClient.getDefaultWriteCachingStrategy() |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
BlockReaderFactory |
BlockReaderFactory.setCachingStrategy(CachingStrategy cachingStrategy) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
DataTransferProtocol.readBlock(ExtendedBlock blk,
org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken,
java.lang.String clientName,
long blockOffset,
long length,
boolean sendChecksum,
CachingStrategy cachingStrategy) |
Read a block.
|
void |
Sender.readBlock(ExtendedBlock blk,
org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken,
java.lang.String clientName,
long blockOffset,
long length,
boolean sendChecksum,
CachingStrategy cachingStrategy) |
|
void |
DataTransferProtocol.writeBlock(ExtendedBlock blk,
org.apache.hadoop.fs.StorageType storageType,
org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken,
java.lang.String clientName,
DatanodeInfo[] targets,
org.apache.hadoop.fs.StorageType[] targetStorageTypes,
DatanodeInfo source,
BlockConstructionStage stage,
int pipelineSize,
long minBytesRcvd,
long maxBytesRcvd,
long latestGenerationStamp,
org.apache.hadoop.util.DataChecksum requestedChecksum,
CachingStrategy cachingStrategy,
boolean allowLazyPersist,
boolean pinning,
boolean[] targetPinnings,
java.lang.String storageID,
java.lang.String[] targetStorageIDs) |
Write a block to a datanode pipeline.
|
void |
Sender.writeBlock(ExtendedBlock blk,
org.apache.hadoop.fs.StorageType storageType,
org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken,
java.lang.String clientName,
DatanodeInfo[] targets,
org.apache.hadoop.fs.StorageType[] targetStorageTypes,
DatanodeInfo source,
BlockConstructionStage stage,
int pipelineSize,
long minBytesRcvd,
long maxBytesRcvd,
long latestGenerationStamp,
org.apache.hadoop.util.DataChecksum requestedChecksum,
CachingStrategy cachingStrategy,
boolean allowLazyPersist,
boolean pinning,
boolean[] targetPinnings,
java.lang.String storageId,
java.lang.String[] targetStorageIds) |
| Modifier and Type | Method | Description |
|---|---|---|
CachingStrategy |
CachingStrategy.Builder.build() |
|
static CachingStrategy |
CachingStrategy.newDefaultStrategy() |
|
static CachingStrategy |
CachingStrategy.newDropBehind() |
| Constructor | Description |
|---|---|
Builder(CachingStrategy prev) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.