Uses of Class
org.apache.hadoop.hdfs.protocol.ExtendedBlock
Packages that use ExtendedBlock
Package
Description
This package provides the administrative APIs for HDFS.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
-
Uses of ExtendedBlock in org.apache.hadoop.hdfs
Methods in org.apache.hadoop.hdfs that return ExtendedBlockModifier and TypeMethodDescriptionDFSInputStream.getCurrentBlock()Returns the block containing the target position.Methods in org.apache.hadoop.hdfs that return types with arguments of type ExtendedBlockMethods in org.apache.hadoop.hdfs with parameters of type ExtendedBlockModifier and TypeMethodDescriptionvoidDFSUtilClient.CorruptedBlocks.addCorruptedBlock(ExtendedBlock blk, DatanodeInfo node) Indicate a block replica on the specified datanode is corruptedprotected voidDFSOutputStream.completeFile(ExtendedBlock last) static ExtendedBlockIdExtendedBlockId.fromExtendedBlock(ExtendedBlock block) -
Uses of ExtendedBlock in org.apache.hadoop.hdfs.client
Methods in org.apache.hadoop.hdfs.client that return ExtendedBlockModifier and TypeMethodDescriptionHdfsDataInputStream.getCurrentBlock()Get the block containing the target position. -
Uses of ExtendedBlock in org.apache.hadoop.hdfs.client.impl
Methods in org.apache.hadoop.hdfs.client.impl with parameters of type ExtendedBlockModifier and TypeMethodDescriptionstatic BlockReaderBlockReaderRemote.newBlockReader(String file, ExtendedBlock block, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, long startOffset, long len, boolean verifyChecksum, 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.setBlock(ExtendedBlock block) -
Uses of ExtendedBlock in org.apache.hadoop.hdfs.protocol
Methods in org.apache.hadoop.hdfs.protocol that return ExtendedBlockModifier and TypeMethodDescriptionBlockLocalPathInfo.getBlock()LocatedBlock.getBlock()StripedBlockInfo.getBlock()Methods in org.apache.hadoop.hdfs.protocol with parameters of type ExtendedBlockModifier and TypeMethodDescriptionvoidClientProtocol.abandonBlock(ExtendedBlock b, long fileId, String src, String holder) The client can give up on a block by calling abandonBlock().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().booleanClientProtocol.complete(String src, String clientName, ExtendedBlock last, long fileId) The client is done writing data to the given filename, and would like to complete it.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.ClientDatanodeProtocol.getBlockLocalPathInfo(ExtendedBlock block, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> token) Retrieves the path names of the block file and metadata file stored on the local file system.static BlockExtendedBlock.getLocalBlock(ExtendedBlock b) longClientDatanodeProtocol.getReplicaVisibleLength(ExtendedBlock b) Return the visible length of a replica.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.voidClientProtocol.updatePipeline(String clientName, ExtendedBlock oldBlock, ExtendedBlock newBlock, DatanodeID[] newNodes, String[] newStorageIDs) Update a pipeline for a block under construction.Constructors in org.apache.hadoop.hdfs.protocol with parameters of type ExtendedBlockModifierConstructorDescriptionBlockLocalPathInfo(ExtendedBlock b, String file, String metafile) Constructs BlockLocalPathInfo.LocatedBlock(ExtendedBlock b, DatanodeInfo[] locs) LocatedBlock(ExtendedBlock b, DatanodeInfo[] locs, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes) LocatedBlock(ExtendedBlock b, DatanodeInfo[] locs, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes, long startOffset, boolean corrupt, DatanodeInfo[] cachedLocs) LocatedBlock(ExtendedBlock b, DatanodeInfoWithStorage[] locs, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes, long startOffset, boolean corrupt, DatanodeInfo[] cachedLocs) LocatedStripedBlock(ExtendedBlock b, DatanodeInfo[] locs, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes, byte[] indices, long startOffset, boolean corrupt, DatanodeInfo[] cachedLocs) StripedBlockInfo(ExtendedBlock block, DatanodeInfo[] datanodes, org.apache.hadoop.security.token.Token<BlockTokenIdentifier>[] blockTokens, byte[] blockIndices, ErasureCodingPolicy ecPolicy) -
Uses of ExtendedBlock in org.apache.hadoop.hdfs.protocol.datatransfer
Methods in org.apache.hadoop.hdfs.protocol.datatransfer with parameters of type ExtendedBlockModifier and TypeMethodDescriptionvoidDataTransferProtocol.blockChecksum(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, BlockChecksumOptions blockChecksumOptions) Get block checksum (MD5 of CRC32).voidSender.blockChecksum(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, BlockChecksumOptions blockChecksumOptions) voidDataTransferProtocol.copyBlock(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken) Copy a block.voidSender.copyBlock(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken) voidDataTransferProtocol.readBlock(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, String clientName, long blockOffset, long length, boolean sendChecksum, CachingStrategy cachingStrategy) Read a block.voidSender.readBlock(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, String clientName, long blockOffset, long length, boolean sendChecksum, CachingStrategy cachingStrategy) voidDataTransferProtocol.replaceBlock(ExtendedBlock blk, org.apache.hadoop.fs.StorageType storageType, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, String delHint, DatanodeInfo source, String storageId) Receive a block from a source datanode and then notifies the namenode to remove the copy from the original datanode.voidSender.replaceBlock(ExtendedBlock blk, org.apache.hadoop.fs.StorageType storageType, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, String delHint, DatanodeInfo source, String storageId) voidDataTransferProtocol.requestShortCircuitFds(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, ShortCircuitShm.SlotId slotId, int maxVersion, boolean supportsReceiptVerification) Request short circuit access file descriptors from a DataNode.voidSender.requestShortCircuitFds(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, ShortCircuitShm.SlotId slotId, int maxVersion, boolean supportsReceiptVerification) voidDataTransferProtocol.transferBlock(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, String clientName, DatanodeInfo[] targets, org.apache.hadoop.fs.StorageType[] targetStorageTypes, String[] targetStorageIDs) Transfer a block to another datanode.voidSender.transferBlock(ExtendedBlock blk, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, String clientName, DatanodeInfo[] targets, org.apache.hadoop.fs.StorageType[] targetStorageTypes, String[] targetStorageIds) voidDataTransferProtocol.writeBlock(ExtendedBlock blk, org.apache.hadoop.fs.StorageType storageType, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, 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, String storageID, String[] targetStorageIDs) Write a block to a datanode pipeline.voidSender.writeBlock(ExtendedBlock blk, org.apache.hadoop.fs.StorageType storageType, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> blockToken, 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, String storageId, String[] targetStorageIds) -
Uses of ExtendedBlock in org.apache.hadoop.hdfs.protocolPB
Methods in org.apache.hadoop.hdfs.protocolPB that return ExtendedBlockModifier and TypeMethodDescriptionstatic ExtendedBlockPBHelperClient.convert(org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProto eb) Methods in org.apache.hadoop.hdfs.protocolPB with parameters of type ExtendedBlockModifier and TypeMethodDescriptionvoidClientNamenodeProtocolTranslatorPB.abandonBlock(ExtendedBlock b, long fileId, String src, String holder) ClientNamenodeProtocolTranslatorPB.addBlock(String src, String clientName, ExtendedBlock previous, DatanodeInfo[] excludeNodes, long fileId, String[] favoredNodes, EnumSet<AddBlockFlag> addBlockFlags) booleanClientNamenodeProtocolTranslatorPB.complete(String src, String clientName, ExtendedBlock last, long fileId) static org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.ExtendedBlockProtoPBHelperClient.convert(ExtendedBlock b) ClientNamenodeProtocolTranslatorPB.getAdditionalDatanode(String src, long fileId, ExtendedBlock blk, DatanodeInfo[] existings, String[] existingStorageIDs, DatanodeInfo[] excludes, int numAdditionalNodes, String clientName) ClientDatanodeProtocolTranslatorPB.getBlockLocalPathInfo(ExtendedBlock block, org.apache.hadoop.security.token.Token<BlockTokenIdentifier> token) longClientDatanodeProtocolTranslatorPB.getReplicaVisibleLength(ExtendedBlock b) ClientNamenodeProtocolTranslatorPB.updateBlockForPipeline(ExtendedBlock block, String clientName) voidClientNamenodeProtocolTranslatorPB.updatePipeline(String clientName, ExtendedBlock oldBlock, ExtendedBlock newBlock, DatanodeID[] newNodes, String[] storageIDs) -
Uses of ExtendedBlock in org.apache.hadoop.hdfs.server.datanode
Constructors in org.apache.hadoop.hdfs.server.datanode with parameters of type ExtendedBlock -
Uses of ExtendedBlock in org.apache.hadoop.hdfs.util
Methods in org.apache.hadoop.hdfs.util that return ExtendedBlockModifier and TypeMethodDescriptionstatic ExtendedBlockStripedBlockUtil.constructInternalBlock(ExtendedBlock blockGroup, int cellSize, int dataBlkNum, int idxInBlockGroup) This method creates an internalExtendedBlockat the given index of a block group.static ExtendedBlockStripedBlockUtil.constructInternalBlock(ExtendedBlock blockGroup, ErasureCodingPolicy ecPolicy, int idxInBlockGroup) Methods in org.apache.hadoop.hdfs.util with parameters of type ExtendedBlockModifier and TypeMethodDescriptionstatic voidStripedBlockUtil.checkBlocks(ExtendedBlock blockGroup, int i, ExtendedBlock blocki) Check if the information such as IDs and generation stamps in block-i match the block group.static ExtendedBlockStripedBlockUtil.constructInternalBlock(ExtendedBlock blockGroup, int cellSize, int dataBlkNum, int idxInBlockGroup) This method creates an internalExtendedBlockat the given index of a block group.static ExtendedBlockStripedBlockUtil.constructInternalBlock(ExtendedBlock blockGroup, ErasureCodingPolicy ecPolicy, int idxInBlockGroup)