Package org.apache.hadoop.hdfs.protocol
Class ExtendedBlock
java.lang.Object
org.apache.hadoop.hdfs.protocol.ExtendedBlock
Identifies a Block uniquely across the block pools
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedBlock(String poolId, long blockId) ExtendedBlock(String poolId, long blkid, long len, long genstamp) ExtendedBlock(String poolId, Block b) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongReturns the block file name for the blocklongstatic BlocklonginthashCode()voidvoidsetBlockId(long bid) voidsetGenerationStamp(long genStamp) voidsetNumBytes(long len) toString()
-
Constructor Details
-
ExtendedBlock
public ExtendedBlock() -
ExtendedBlock
-
ExtendedBlock
-
ExtendedBlock
-
ExtendedBlock
-
-
Method Details
-
getBlockPoolId
-
getBlockName
Returns the block file name for the block -
getNumBytes
public long getNumBytes() -
getBlockId
public long getBlockId() -
getGenerationStamp
public long getGenerationStamp() -
setBlockId
public void setBlockId(long bid) -
setGenerationStamp
public void setGenerationStamp(long genStamp) -
setNumBytes
public void setNumBytes(long len) -
set
-
getLocalBlock
-
getLocalBlock
-
equals
-
hashCode
public int hashCode() -
toString
-