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

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.protocol.ReceivedDeletedBlockInfo
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class ReceivedDeletedBlockInfo
extends Object
implements org.apache.hadoop.io.Writable

A data structure to store Block and delHints together, used to send received/deleted ACKs.


Field Summary
static String TODELETE_HINT
           
 
Constructor Summary
ReceivedDeletedBlockInfo()
           
ReceivedDeletedBlockInfo(org.apache.hadoop.hdfs.protocol.Block blk, 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()
           
 int hashCode()
           
 boolean isDeletedBlock()
           
 void readFields(DataInput in)
           
 void setBlock(org.apache.hadoop.hdfs.protocol.Block blk)
           
 void setDelHints(String hints)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TODELETE_HINT

public static final String TODELETE_HINT
See Also:
Constant Field Values
Constructor Detail

ReceivedDeletedBlockInfo

public ReceivedDeletedBlockInfo()

ReceivedDeletedBlockInfo

public ReceivedDeletedBlockInfo(org.apache.hadoop.hdfs.protocol.Block blk,
                                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)

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()

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Apache Software Foundation. All Rights Reserved.