Uses of Class org.apache.hadoop.hdfs.protocol.LocatedBlock (Apache Hadoop HDFS Client 3.5.0 API)
Description: use: package: org.apache.hadoop.hdfs.protocol, class: LocatedBlock

# Uses of Class
org.apache.hadoop.hdfs.protocol.LocatedBlock

Packages that use LocatedBlock
Package
Description
org.apache.hadoop.fs
Implementations of `AbstractFileSystem` for hdfs over rpc and hdfs over web.
org.apache.hadoop.hdfs
org.apache.hadoop.hdfs.client
This package provides the administrative APIs for 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
org.apache.hadoop.hdfs.util
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.

- ## Uses of LocatedBlock in org.apache.hadoop.fs

  Methods in org.apache.hadoop.fs that return LocatedBlock
  Modifier and Type
  Method
  Description
  `LocatedBlock`
  HdfsBlockLocation.`getLocatedBlock()`
  Constructors in org.apache.hadoop.fs with parameters of type LocatedBlock
  Modifier
  Constructor
  Description
  ``
  `HdfsBlockLocation(org.apache.hadoop.fs.BlockLocation loc, LocatedBlock block)`

- ## Uses of LocatedBlock in org.apache.hadoop.hdfs

  Fields in org.apache.hadoop.hdfs declared as LocatedBlock
  Modifier and Type
  Field
  Description
  `protected LocatedBlock`
  DFSInputStream.`currentLocatedBlock`
  Methods in org.apache.hadoop.hdfs that return LocatedBlock
  Modifier and Type
  Method
  Description
  `protected LocatedBlock`
  DFSInputStream.`fetchBlockAt(long offset)`
  Fetch a block from namenode and cache it
  `protected LocatedBlock`
  DFSInputStream.`getBlockAt(long offset)`
  Get block at the specified position.
  `protected LocatedBlock`
  DFSInputStream.`refreshLocatedBlock(LocatedBlock block)`
  Refresh cached block locations.
  `protected LocatedBlock`
  DFSStripedInputStream.`refreshLocatedBlock(LocatedBlock block)`
  The super method `DFSInputStream.refreshLocatedBlock(org.apache.hadoop.hdfs.protocol.LocatedBlock)` refreshes cached LocatedBlock by executing `DFSInputStream.getBlockAt(long)` again.
  Methods in org.apache.hadoop.hdfs that return types with arguments of type LocatedBlock
  Modifier and Type
  Method
  Description
  `List<LocatedBlock>`
  DFSInputStream.`getAllBlocks()`
  Return collection of blocks that has already been located.
  Methods in org.apache.hadoop.hdfs with parameters of type LocatedBlock
  Modifier and Type
  Method
  Description
  `static ClientDatanodeProtocol`
  DFSUtilClient.`createClientDatanodeProtocolProxy(DatanodeID datanodeid, org.apache.hadoop.conf.Configuration conf, int socketTimeout, boolean connectToDnViaHostname, LocatedBlock locatedBlock)`
  Create a `ClientDatanodeProtocol` proxy
  `protected void`
  DFSInputStream.`fetchBlockByteRange(LocatedBlock block, long start, long end, ByteBuffer buf, DFSUtilClient.CorruptedBlocks corruptedBlocks, Map<InetSocketAddress,List<IOException>> exceptionMap)`
  `protected void`
  DFSStripedInputStream.`fetchBlockByteRange(LocatedBlock block, long start, long end, ByteBuffer buf, DFSUtilClient.CorruptedBlocks corruptedBlocks, Map<InetSocketAddress,List<IOException>> exceptionMap)`
  Real implementation of pread.
  `protected org.apache.hadoop.hdfs.DFSInputStream.DNAddrPair`
  DFSInputStream.`getBestNodeDNAddrPair(LocatedBlock block, Collection<DatanodeInfo> ignoredNodes)`
  Get the best node from which to stream the data.
  `protected BlockReader`
  DFSInputStream.`getBlockReader(LocatedBlock targetBlock, long offsetInBlock, long length, InetSocketAddress targetAddr, org.apache.hadoop.fs.StorageType storageType, DatanodeInfo datanode)`
  `protected org.apache.hadoop.util.DataChecksum.Type`
  DFSClient.`inferChecksumTypeByReading(LocatedBlock lb, DatanodeInfo dn)`
  Infer the checksum type for a replica by sending an OP_READ_BLOCK for the first byte of that replica.
  `void`
  DFSClientFaultInjector.`onCreateBlockReader(LocatedBlock block, int chunkIndex, long offset, long length)`
  `protected LocatedBlock`
  DFSInputStream.`refreshLocatedBlock(LocatedBlock block)`
  Refresh cached block locations.
  `protected LocatedBlock`
  DFSStripedInputStream.`refreshLocatedBlock(LocatedBlock block)`
  The super method `DFSInputStream.refreshLocatedBlock(org.apache.hadoop.hdfs.protocol.LocatedBlock)` refreshes cached LocatedBlock by executing `DFSInputStream.getBlockAt(long)` again.
  `void`
  DFSClient.`reportBadBlocks(LocatedBlock[] blocks)`
  Report corrupt blocks that were discovered by the client.
  `protected void`
  DFSInputStream.`reportLostBlock(LocatedBlock lostBlock, Collection<DatanodeInfo> ignoredNodes)`
  Warn the user of a lost block
  `protected void`
  DFSStripedInputStream.`reportLostBlock(LocatedBlock lostBlock, Collection<DatanodeInfo> ignoredNodes)`
  Method parameters in org.apache.hadoop.hdfs with type arguments of type LocatedBlock
  Modifier and Type
  Method
  Description
  `static org.apache.hadoop.fs.BlockLocation[]`
  DFSUtilClient.`locatedBlocks2Locations(List<LocatedBlock> blocks)`
  Convert a List to BlockLocation[]
  Constructors in org.apache.hadoop.hdfs with parameters of type LocatedBlock
  Modifier
  Constructor
  Description
  ``
  `CannotObtainBlockLengthException(LocatedBlock locatedBlock)`
  Constructs an `CannotObtainBlockLengthException` with the specified LocatedBlock that failed to obtain block length.
  ``
  `CannotObtainBlockLengthException(LocatedBlock locatedBlock, String src)`
  Constructs an `CannotObtainBlockLengthException` with the specified LocatedBlock and file that failed to obtain block length.

- ## Uses of LocatedBlock in org.apache.hadoop.hdfs.client

  Methods in org.apache.hadoop.hdfs.client that return types with arguments of type LocatedBlock
  Modifier and Type
  Method
  Description
  `List<LocatedBlock>`
  HdfsDataInputStream.`getAllBlocks()`
  Get the collection of blocks that has already been located.

- ## Uses of LocatedBlock in org.apache.hadoop.hdfs.protocol

  Subclasses of LocatedBlock in org.apache.hadoop.hdfs.protocol
  Modifier and Type
  Class
  Description
  `class`
  `LocatedStripedBlock`
  `LocatedBlock` with striped block support.
  Methods in org.apache.hadoop.hdfs.protocol that return LocatedBlock
  Modifier and Type
  Method
  Description
  `LocatedBlock`
  ClientProtocol.`addBlock(String src, String clientName, ExtendedBlock previous, DatanodeInfo[] excludeNodes, long fileId, String[] favoredNodes, EnumSet<AddBlockFlag> addBlockFlags)`
  A client that wants to write an additional block to the indicated filename (which must currently be open for writing) should call addBlock().
  `LocatedBlock`
  LocatedBlocks.`get(int index)`
  Get located block.
  `LocatedBlock`
  ClientProtocol.`getAdditionalDatanode(String src, long fileId, ExtendedBlock blk, DatanodeInfo[] existings, String[] existingStorageIDs, DatanodeInfo[] excludes, int numAdditionalNodes, String clientName)`
  Get a datanode for an existing pipeline.
  `LocatedBlock`
  LastBlockWithStatus.`getLastBlock()`
  `LocatedBlock`
  LocatedBlocks.`getLastLocatedBlock()`
  Get the last located block.
  `LocatedBlock`
  ClientProtocol.`updateBlockForPipeline(ExtendedBlock block, String clientName)`
  Get a new generation stamp together with an access token for a block under construction This method is called only when a client needs to recover a failed pipeline or set up a pipeline for appending to a block.
  Methods in org.apache.hadoop.hdfs.protocol that return types with arguments of type LocatedBlock
  Modifier and Type
  Method
  Description
  `List<LocatedBlock>`
  LocatedBlocks.`getLocatedBlocks()`
  Get located blocks.
  Methods in org.apache.hadoop.hdfs.protocol with parameters of type LocatedBlock
  Modifier and Type
  Method
  Description
  `void`
  ClientProtocol.`reportBadBlocks(LocatedBlock[] blocks)`
  The client wants to report corrupted blocks (blocks with specified locations on datanodes).
  Method parameters in org.apache.hadoop.hdfs.protocol with type arguments of type LocatedBlock
  Modifier and Type
  Method
  Description
  `void`
  LocatedBlocks.`insertRange(int blockIdx, List<LocatedBlock> newBlocks)`
  Constructors in org.apache.hadoop.hdfs.protocol with parameters of type LocatedBlock
  Modifier
  Constructor
  Description
  ``
  `LastBlockWithStatus(LocatedBlock lastBlock, HdfsFileStatus fileStatus)`
  ``
  `LocatedBlocks(long flength, boolean isUnderConstuction, List<LocatedBlock> blks, LocatedBlock lastBlock, boolean isLastBlockCompleted, org.apache.hadoop.fs.FileEncryptionInfo feInfo, ErasureCodingPolicy ecPolicy)`
  Constructor parameters in org.apache.hadoop.hdfs.protocol with type arguments of type LocatedBlock
  Modifier
  Constructor
  Description
  ``
  `LocatedBlocks(long flength, boolean isUnderConstuction, List<LocatedBlock> blks, LocatedBlock lastBlock, boolean isLastBlockCompleted, org.apache.hadoop.fs.FileEncryptionInfo feInfo, ErasureCodingPolicy ecPolicy)`

- ## Uses of LocatedBlock in org.apache.hadoop.hdfs.protocolPB

  Methods in org.apache.hadoop.hdfs.protocolPB that return LocatedBlock
  Modifier and Type
  Method
  Description
  `LocatedBlock`
  ClientNamenodeProtocolTranslatorPB.`addBlock(String src, String clientName, ExtendedBlock previous, DatanodeInfo[] excludeNodes, long fileId, String[] favoredNodes, EnumSet<AddBlockFlag> addBlockFlags)`
  `static LocatedBlock[]`
  PBHelperClient.`convertLocatedBlock(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] lb)`
  `static LocatedBlock`
  PBHelperClient.`convertLocatedBlockProto(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto proto)`
  `static LocatedBlock[]`
  PBHelperClient.`convertLocatedBlocks(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[] lb)`
  `LocatedBlock`
  ClientNamenodeProtocolTranslatorPB.`getAdditionalDatanode(String src, long fileId, ExtendedBlock blk, DatanodeInfo[] existings, String[] existingStorageIDs, DatanodeInfo[] excludes, int numAdditionalNodes, String clientName)`
  `LocatedBlock`
  ClientNamenodeProtocolTranslatorPB.`updateBlockForPipeline(ExtendedBlock block, String clientName)`
  Methods in org.apache.hadoop.hdfs.protocolPB that return types with arguments of type LocatedBlock
  Modifier and Type
  Method
  Description
  `static List<LocatedBlock>`
  PBHelperClient.`convertLocatedBlock(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> lb)`
  `static List<LocatedBlock>`
  PBHelperClient.`convertLocatedBlocks(List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto> lb)`
  Methods in org.apache.hadoop.hdfs.protocolPB with parameters of type LocatedBlock
  Modifier and Type
  Method
  Description
  `static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto`
  PBHelperClient.`convertLocatedBlock(LocatedBlock b)`
  `static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto[]`
  PBHelperClient.`convertLocatedBlocks(LocatedBlock[] lb)`
  `void`
  ClientNamenodeProtocolTranslatorPB.`reportBadBlocks(LocatedBlock[] blocks)`
  Method parameters in org.apache.hadoop.hdfs.protocolPB with type arguments of type LocatedBlock
  Modifier and Type
  Method
  Description
  `static List<org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.LocatedBlockProto>`
  PBHelperClient.`convertLocatedBlocks2(List<LocatedBlock> lb)`
  Constructors in org.apache.hadoop.hdfs.protocolPB with parameters of type LocatedBlock
  Modifier
  Constructor
  Description
  ``
  `ClientDatanodeProtocolTranslatorPB(DatanodeID datanodeid, org.apache.hadoop.conf.Configuration conf, int socketTimeout, boolean connectToDnViaHostname, LocatedBlock locatedBlock)`

- ## Uses of LocatedBlock in org.apache.hadoop.hdfs.util

  Methods in org.apache.hadoop.hdfs.util that return LocatedBlock
  Modifier and Type
  Method
  Description
  `static LocatedBlock`
  StripedBlockUtil.`constructInternalBlock(LocatedStripedBlock bg, int idxInReturnedLocs, int cellSize, int dataBlkNum, int idxInBlockGroup)`
  This method creates an internal block at the given index of a block group.
  `static LocatedBlock[]`
  StripedBlockUtil.`parseStripedBlockGroup(LocatedStripedBlock bg, int cellSize, int dataBlkNum, int parityBlkNum)`
  This method parses a striped block group into individual blocks.