org.apache.hadoop.hdfs
Class ExtendedBlockId

java.lang.Object
  extended by org.apache.hadoop.hdfs.ExtendedBlockId

public final class ExtendedBlockId
extends Object

An immutable key which identifies a block.


Constructor Summary
ExtendedBlockId(long blockId, String bpId)
           
 
Method Summary
 boolean equals(Object o)
           
static ExtendedBlockId fromExtendedBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock block)
           
 long getBlockId()
           
 String getBlockPoolId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedBlockId

public ExtendedBlockId(long blockId,
                       String bpId)
Method Detail

fromExtendedBlock

public static ExtendedBlockId fromExtendedBlock(org.apache.hadoop.hdfs.protocol.ExtendedBlock block)

getBlockId

public long getBlockId()

getBlockPoolId

public String getBlockPoolId()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All Rights Reserved.