org.apache.hadoop.hdfs.server.protocol
Class ReceivedDeletedBlockInfo

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.protocol.ReceivedDeletedBlockInfo

public class ReceivedDeletedBlockInfo
extends Object

A data structure to store the blocks in an incremental block report.


Nested Class Summary
static class ReceivedDeletedBlockInfo.BlockStatus
           
 
Constructor Summary
ReceivedDeletedBlockInfo()
           
ReceivedDeletedBlockInfo(org.apache.hadoop.hdfs.protocol.Block blk, ReceivedDeletedBlockInfo.BlockStatus status, String delHints)
           
 
Method Summary
 boolean blockEquals(org.apache.hadoop.hdfs.protocol.Block b)
           
 boolean equals(Object o)
           
 org.apache.hadoop.hdfs.protocol.Block getBlock()
           
 String getDelHints()
           
 ReceivedDeletedBlockInfo.BlockStatus getStatus()
           
 int hashCode()
           
 boolean isDeletedBlock()
           
 void setBlock(org.apache.hadoop.hdfs.protocol.Block blk)
           
 void setDelHints(String hints)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReceivedDeletedBlockInfo

public ReceivedDeletedBlockInfo()

ReceivedDeletedBlockInfo

public ReceivedDeletedBlockInfo(org.apache.hadoop.hdfs.protocol.Block blk,
                                ReceivedDeletedBlockInfo.BlockStatus status,
                                String delHints)
Method Detail

getBlock

public org.apache.hadoop.hdfs.protocol.Block getBlock()

setBlock

public void setBlock(org.apache.hadoop.hdfs.protocol.Block blk)

getDelHints

public String getDelHints()

setDelHints

public void setDelHints(String hints)

getStatus

public ReceivedDeletedBlockInfo.BlockStatus getStatus()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

blockEquals

public boolean blockEquals(org.apache.hadoop.hdfs.protocol.Block b)

isDeletedBlock

public boolean isDeletedBlock()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.